本文整理汇总了Java中org.netbeans.junit.NbModuleSuite.create方法的典型用法代码示例。如果您正苦于以下问题:Java NbModuleSuite.create方法的具体用法?Java NbModuleSuite.create怎么用?Java NbModuleSuite.create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.junit.NbModuleSuite
的用法示例。
在下文中一共展示了NbModuleSuite.create方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
NbModuleSuite.Configuration config = NbModuleSuite.createConfiguration(JavaEditActionsTest.class);
// Add testEditActions tests
for (int i = 0; i < 33; i++) {
config = config.addTest("testEditActionsTestCase_" + i);
if (i == 12) {
config = config.addTest("testEditActionsTestCase_12a");
}
}
// Add testSyntaxSelection
config = config.addTest("testSyntaxSelection");
// Add testLineTools tests
for (int i = 0; i < 12; i++) {
config = config.addTest("testLineToolsTestCase_" + i);
}
// Add testCommentUncomment tests
for (int i = 0; i < 10; i++) {
config = config.addTest("testCommentUncommentTestCase_" + i);
}
config = config.enableModules(".*").clusters(".*");
return NbModuleSuite.create(config);
}
示例2: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
return NbModuleSuite.create(
NbModuleSuite.createConfiguration(AbbreviationsAddRemovePerformer.class)
.addTest("testAllAbbrev")
.addTest("testAddRemove")
// .addTest("testChangeExpansionKey")
.addTest("testCodeTemplate")
.addTest("testCursorPosition")
// .addTest("testEdit")
.addTest("testInInvalidMime")
// .addTest("testJavadocAbbrev")
// .addTest("testRemove")
.addTest("testSelection")
.enableModules(".*")
.clusters(".*"));
}
示例3: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
// String os = System.getProperty("os.name");
// String jdk = System.getProperty("java.version");
// if ( jdk.contains("1.5") && os.contains("Windows") && !os.contains("Vista") ) {
// return NbModuleSuite.create(NbModuleSuite.emptyConfiguration());
// } else {
return NbModuleSuite.create(NbModuleSuite.emptyConfiguration()
.addTest(ThreadBreakpointsTest.class,
"testThreadBreakpointCreation",
"testThreadBreakpointFunctionality",
"testThreadBreakpointFunctionalityHitCount"
)
.enableModules(".*").clusters(".*"));
// }
}
示例4: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
return NbModuleSuite.create(
NbModuleSuite.createConfiguration(RevertUiTest.class).addTest(
"testInvokeCloseRevert"
)
.enableModules(".*")
.clusters(".*")
);
}
示例5: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
return NbModuleSuite.create(
NbModuleSuite
.createConfiguration(JavaFoldsNavigationTest.class)
.addTest(JavaFoldsNavigationTest.class,"testJavaFoldsNavigation")
.addTest(JavaFoldsTest.class,"testJavaFolds"));
}
示例6: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
/** Test suite
* @param args arguments from command line
*/
public static Test suite() {
if (OS.equals("sunos")) {
System.out.println("Solaris is not supported");
} else {
return NbModuleSuite.create(NbModuleSuite.createConfiguration(BaseTest.class).addTest("testScenario").enableModules(".*").clusters(".*").gui(true));
}
return NbModuleSuite.create(NbModuleSuite.createConfiguration(BaseTest.class).addTest("testNoScenario"));
}
示例7: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
// XXX: supresses warning about jpda debugger using parsing API from AWT thread
System.setProperty("org.netbeans.modules.parsing.impl.TaskProcessor.level", "OFF");
NbModuleSuite.Configuration conf = NbModuleSuite.createConfiguration(
MemoryValidationTest.class
).clusters(".*").enableModules(".*").
honorAutoloadEager(true).
failOnException(Level.OFF)
.failOnMessage(Level.OFF);
conf = conf.addTest("testInitGC");
conf = conf.addTest("testMainMenu");
// conf = conf.addTest("testHelp");
conf = conf.addTest("testOptions");
conf = conf.addTest("testNewProject");
// sample project must exist before testShortcuts
conf = conf.addTest("testShortcuts");
conf = conf.addTest("testNewFile");
// conf = conf.addTest("testProjectsView");
// conf = conf.addTest("testFilesView");
conf = conf.addTest("testEditor");
conf = conf.addTest("testBuildAndRun");
// conf = conf.addTest("testDebugging");
// conf = conf.addTest("testJUnit");
// conf = conf.addTest("testXML");
// conf = conf.addTest("testDb");
// conf = conf.addTest("testWindowSystem");
conf = conf.addTest("testGCDocuments");
conf = conf.addTest("testGCProjects");
// not in commit suite because it needs net connectivity
// suite.addTest(new IDEValidation("testPlugins"));
return NbModuleSuite.create(conf);
}
示例8: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
return NbModuleSuite.create(
NbModuleSuite.createConfiguration(LessCompletionTest.class).addTest(
"openProject",
"testCompletionL4",
"testCompletionL8",
"testCompletionL11",
"testCompletionL18",
"testCompletionL30",
"testCompletionL35",
"testCompletionL41",
"testCompletionL45",
"testCompletionL47"
).enableModules(".*").clusters(".*"));
}
示例9: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
// NbTestSuite suite = new NbTestSuite();
// suite.addTest(new VersioningSystemTest("testOwnership"));
// suite.addTest(new VersioningSystemTest("testInterceptor"));
// return suite;
return NbModuleSuite.create(NbModuleSuite.emptyConfiguration()
.addTest(VersioningSystemTest.class,
"testOwnership",
"testInterceptor")
.enableModules(".*").clusters(".*"));
}
示例10: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
return NbModuleSuite.create(NbModuleSuite.createConfiguration(GapsTest.class).addTest(
"testOpenCloseGapDialog",
"testpopUpDialogInvoke",
"testNewSizeOfGap",
"testpopUpDialogOnButton").gui(true).clusters(".*").enableModules(".*"));
}
示例11: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
return NbModuleSuite.create(
NbModuleSuite.createConfiguration(GeneralTypingTest.class)
.addTest(GeneralTypingTest.class, "testJavaEnterBeginAndEnd")
.addTest(MainMenuTest.class, "testMainMenu")
.addTest(IncrementalSearchTest.class,
"testSearchForward",
"testSearchBackwards",
"testMatchCase",
"testNextButton",
"testPrevButton",
"testCloseButton",
"testNotFound",
"testInvalidRegexp",
"testSearchForwardBackward",
"testWholeWords",
"testRegularExpression",
"testFindNext",
"testFindPrev")
.addTest(KeyMapTest.class, "testVerify")
.addTest(KeyMapTest.class, "testAddDuplicateCancel")
.addTest(KeyMapTest.class, "testAddShortcut")
.addTest(KeyMapTest.class, "testUnassign")
.addTest(KeyMapTest.class, "testAssignAlternativeShortcut")
.addTest(KeyMapTest.class, "testProfileRestore")//fails due to issue 151254
.addTest(KeyMapTest.class, "testProfileDuplicte")
.addTest(KeyMapTest.class, "testHelp")
.addTest(AbbreviationsAddRemovePerformer.class)
.clusters(".*").enableModules(".*")
);
}
示例12: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
/**
* Adds tests to suite
* @return created suite
*/
public static Test suite() {
return NbModuleSuite.create(
NbModuleSuite.createConfiguration(BasicSearchTest.class).addTest("testSearchForClass", "testRememberSearchesInsideComboBox").enableModules(".*").clusters(".*"));
}
示例13: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
return NbModuleSuite.create(
NbModuleSuite.createConfiguration(AddingNewKeyAndValuesTest.class).addTest("testCreateNewBundle" /*, "testOpenningSimpleEditor", "testOpenningAdvanceEditor" */, "testAddNewKeyAndValue").enableModules(".*").clusters(".*"));
}
示例14: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
/**
* Creates suite from particular test cases.
* @return nb test suite
*/
public static Test suite() {
return NbModuleSuite.create(NbModuleSuite.createConfiguration(RenameFormClassTest.class)
.addTest("testRefactoring", "testChangesInJavaFile", "testChangesInPropertiesFile")
.clusters(".*").enableModules(".*").gui(true));
}
示例15: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
return NbModuleSuite.create(
NbModuleSuite.createConfiguration(CreateGetterSetterTest.class).enableModules(".*").clusters(".*"));
}