/**
* Copyright (c) 2008 Perforce Software. All rights reserved.
*/
package com.perforce.team.tests.dialogs;
import com.perforce.team.tests.P4TestCase;
import com.perforce.team.tests.Utils;
import com.perforce.team.ui.dialogs.FileTypeDialog;
/**
* @author Kevin Sawicki (ksawicki@perforce.com)
*/
public class FiletypeDialogTest extends P4TestCase {
/**
* Test text+w type
*/
public void testTextWritable() {
String type = "text+w";
FileTypeDialog dialog = new FileTypeDialog(Utils.getShell(), type);
try {
dialog.setBlockOnOpen(false);
dialog.open();
assertEquals(type, dialog.getFileType());
String newType = dialog.getSelectedFileType();
assertEquals(type, newType);
} finally {
dialog.close();
}
}
/**
* Test binary+xl type
*/
public void testBinaryExecutableExclusive() {
String type = "binary+xl";
FileTypeDialog dialog = new FileTypeDialog(Utils.getShell(), type);
try {
dialog.setBlockOnOpen(false);
dialog.open();
assertEquals(type, dialog.getFileType());
String newType = dialog.getSelectedFileType();
assertEquals(type, newType);
} finally {
dialog.close();
}
}
}
# |
Change |
User |
Description |
Committed |
|
#1
|
15907 |
Matt Attaway |
More house cleaning to match Workshop best practices |
|
|
//guest/perforce_software/p4eclipse/r14.1/src/3.7/plugins/com.perforce.team.tests/src/com/perforce/team/tests/dialogs/FiletypeDialogTest.java |
#1
|
12432 |
Matt Attaway |
Initial commit of the 2014.1 P4Eclipse source code. |
|
|