本文整理汇总了Java中org.netbeans.junit.NbModuleSuite.createConfiguration方法的典型用法代码示例。如果您正苦于以下问题:Java NbModuleSuite.createConfiguration方法的具体用法?Java NbModuleSuite.createConfiguration怎么用?Java NbModuleSuite.createConfiguration使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.junit.NbModuleSuite
的用法示例。
在下文中一共展示了NbModuleSuite.createConfiguration方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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();
}
示例2: 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);
}
示例3: 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();
}
示例4: 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));
}
示例5: 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();
}
示例6: suite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
Configuration c = NbModuleSuite.createConfiguration(InstallTmpModuleTest.class);
c = c.addTest("testInstallJARFromTmp").failOnException(Level.INFO).gui(false);
return c.suite();
}
示例7: 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);
}
示例8: createTestSuite
import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test createTestSuite(Class<? extends TestCase> clazz) {
Configuration suiteConfiguration = NbModuleSuite.createConfiguration(clazz);
suiteConfiguration = suiteConfiguration.gui(false);
//suiteConfiguration = suiteConfiguration.reuseUserDir(false);
return NbModuleSuite.create(suiteConfiguration);
}