本文整理汇总了Java中org.netbeans.junit.NbModuleSuite.Configuration方法的典型用法代码示例。如果您正苦于以下问题:Java NbModuleSuite.Configuration方法的具体用法?Java NbModuleSuite.Configuration怎么用?Java NbModuleSuite.Configuration使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.junit.NbModuleSuite
的用法示例。
在下文中一共展示了NbModuleSuite.Configuration方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
/** Creates suite from particular test cases. */
public static Test suite() {
// run tests in particular order
//return createModuleTest(EmptyTest.class, "test2", "test1");
// run all tests
//return createModuleTest(EmptyTest.class);
// run tests with specific configuration
NbModuleSuite.Configuration conf = NbModuleSuite.createConfiguration(EmptyTest.class).
clusters(".*").
enableModules(".*").
failOnException(Level.INFO).
failOnMessage(Level.SEVERE);
conf = conf.addTest("test1");
return NbModuleSuite.create(conf);
}
示例2: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
/**
* Define test suite.
*
* @return suite.
*/
public static Test suite() {
NbModuleSuite.Configuration conf = NbModuleSuite.createConfiguration(WidgetOperatorTest.class);
return conf.clusters(".*").enableModules(".*").gui(false).addTest(
// test cases have to be in particular order
"testShowScene",
"testConstructors",
"testGetSceneOperator",
"testGetParent",
"testGetChildren",
"testGetCenter",
"testGetLocation",
"testGetBounds",
"testPrintDump",
"testCreateOperator",
"testPerformPopupAction",
"testPerformPopupActionNoBlock",
"testClickMouse",
"testDragNDrop",
// must be after testDragNDrop
"testConnectionWidgetOperator",
"testLabelWidgetOperator",
"testCloseScene").suite();
}
示例3: 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);
}
示例4: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() throws URISyntaxException {
URL u = WhitelistTest.class.getProtectionDomain().getCodeSource().getLocation();
File f = new File(u.toURI());
while (f != null) {
File hg = new File(f, ".hg");
if (hg.isDirectory()) {
System.setProperty("versioning.unversionedFolders", f.getPath());
System.err.println("ignoring Hg folder: " + f);
break;
}
f = f.getParentFile();
}
stage = Integer.getInteger("test.whitelist.stage", 1);
initBlacklistedClassesHandler();
NbModuleSuite.Configuration conf = NbModuleSuite.createConfiguration(
WhitelistTest.class
).clusters("(?!ergonomics).*").honorAutoloadEager(true).reuseUserDir(stage > 1)
.enableClasspathModules(false).addStartupArgument("--branding", "nb");
conf = conf.addTest("testWhitelist" + stage);
return conf.suite();
}
示例5: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() throws IOException {
NbModuleSuite.Configuration conf = NbModuleSuite.createConfiguration(
PerfIDECommitValidationTest.class
).clusters(".*").enableModules(".*").honorAutoloadEager(true)
.failOnException(Level.WARNING)
.failOnMessage(Level.SEVERE);
PerfCountingSecurityManager.initWrites();
//conf = conf.addTest("testReflectionUsage"); // too easy to break:
conf = conf.addTest("testWriteAccess");
//conf = conf.addTest("testInitGC");
conf = conf.addTest("testMainMenu");
conf = conf.addTest("testHelp");
conf = conf.addTest("testOptions");
conf = conf.addTest("testNewProject");
conf = conf.addTest("testShortcuts"); // sample project must exist before 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("testPlugins"); //needs net connectivity
conf = conf.addTest("testJUnit"); //needs JUnit installed in testPlugins
conf = conf.addTest("testXML");
conf = conf.addTest("testDb");
conf = conf.addTest("testWindowSystem");
//conf = conf.addTest("testGCDocuments");
//conf = conf.addTest("testGCProjects");
return NbModuleSuite.create(conf);
}
示例6: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
NbModuleSuite.Configuration conf = NbModuleSuite.emptyConfiguration().
addTest(ActionsTest.class).
addTest(EmptyTest.class).
addTest(NodesTest.class).
addTest(OperatorsTest.class).
addTest(OverallTest.class, OverallTest.tests).
addTest(PropertiesTest.class).
addTest(WizardsTest.class);
return conf.clusters(".*").enableModules(".*").honorAutoloadEager(true).suite();
}
示例7: createModuleTest
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
protected static junit.framework.Test createModuleTest(String modules, String clusters, Class testClass, String... testNames) {
NbModuleSuite.Configuration conf = NbModuleSuite.createConfiguration(testClass);
conf = conf.clusters(clusters);
conf = conf.enableModules(modules);
// #217226 - behave as run from command line
conf = conf.honorAutoloadEager(true);
if (testNames.length > 0) {
conf = conf.addTest(testNames);
}
return conf.suite();
}
示例8: emptyConfiguration
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
/** Returns empty configuration with all clusters and modules enabled and
* with default recommended settings.
* @return default empty configuration
*/
public static NbModuleSuite.Configuration emptyConfiguration() {
NbModuleSuite.Configuration conf = NbModuleSuite.emptyConfiguration();
// #217226 - behave as run from command line
conf = conf.honorAutoloadEager(true);
return conf.clusters(".*").enableModules(".*");
}
示例9: 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);
}
示例10: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() throws IOException {
NbModuleSuite.Configuration conf = NbModuleSuite.createConfiguration(
IDECommitValidationTest.class
).clusters(".*").enableModules(".*").honorAutoloadEager(true)
.failOnException(Level.WARNING)
.failOnMessage(Level.SEVERE);
CountingSecurityManager.initWrites();
//conf = conf.addTest("testReflectionUsage"); // too easy to break:
conf = conf.addTest("testWriteAccess");
//conf = conf.addTest("testInitGC");
conf = conf.addTest("testMainMenu");
conf = conf.addTest("testHelp");
conf = conf.addTest("testOptions");
conf = conf.addTest("testNewProject");
conf = conf.addTest("testShortcuts"); // sample project must exist before 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("testPlugins"); //needs net connectivity
conf = conf.addTest("testJUnit"); //needs JUnit installed in testPlugins
conf = conf.addTest("testXML");
conf = conf.addTest("testDb");
conf = conf.addTest("testWindowSystem");
//conf = conf.addTest("testGCDocuments");
//conf = conf.addTest("testGCProjects");
return NbModuleSuite.create(conf);
}
示例11: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() throws IOException {
NbModuleSuite.Configuration conf = NbModuleSuite.createConfiguration(
ThreadsTest.class
).clusters(".*").enableModules(".*").gui(true).reuseUserDir(false)
.honorAutoloadEager(true);
conf = conf.addTest("testThreads");
return conf.suite();
}
示例12: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
NbModuleSuite.Configuration conf = NbModuleSuite.createConfiguration(CSSTest.class);
addServerTests(conf, new String[0]);//register server
conf = conf.enableModules(".*").clusters(".*");
return NbModuleSuite.create(conf.addTest(SuiteCreator.class));
}
示例13: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
NbModuleSuite.Configuration testConfig = NbModuleSuite.createConfiguration(NbModuleSuiteMockServiceTest.class);
testConfig = testConfig.gui(false);
return testConfig.suite();
}
示例14: 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(
PerfMemoryValidationTest.class
).clusters(".*").enableModules(".*").
honorAutoloadEager(true).
failOnException(Level.OFF)
.failOnMessage(Level.OFF);
//conf = conf.addTest("testWriteAccess");
//conf = conf.addTest("testReflectionUsage");
conf = conf.addTest("testInitGC");
conf = conf.addTest("testMainMenu");
conf = conf.addTest("testHelp");
conf = conf.addTest("testOptions");
// conf = conf.addTest("testPlugins");
// conf = conf.addTest("testJUnit");
conf = conf.addTest("testNewJavaProject");
conf = conf.addTest("testPrepareGC");
// 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("testXML");
conf = conf.addTest("testNewJavaScriptProject");
conf = conf.addTest("testWindowSystem");
// conf = conf.addTest("testDb");
conf = conf.addTest("testGCDocuments");
conf = conf.addTest("testAnalyzeGCDocuments");
conf = conf.addTest("testGCProjects");
conf = conf.addTest("testAnalyzeGCProjects");
// not in commit suite because it needs net connectivity
return NbModuleSuite.create(conf);
}
示例15: createTestSuite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test createTestSuite(Class<? extends TestCase> clazz) {
NbModuleSuite.Configuration suiteConfiguration = NbModuleSuite.createConfiguration(clazz);
suiteConfiguration = suiteConfiguration.gui(false);
//suiteConfiguration = suiteConfiguration.reuseUserDir(false);
return NbModuleSuite.create(suiteConfiguration);
}