当前位置: 首页>>代码示例>>Java>>正文


Java NbModuleSuite.create方法代码示例

本文整理汇总了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);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:JavaEditActionsTest.java

示例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(".*"));
   }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:17,代码来源:AbbreviationsAddRemovePerformer.java

示例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(".*"));
//        }
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:Breakpoints_ThreadTestSuite.java

示例4: suite

import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
    return NbModuleSuite.create(
            NbModuleSuite.createConfiguration(RevertUiTest.class).addTest(
               "testInvokeCloseRevert"
            )
            .enableModules(".*")
            .clusters(".*")
   );
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:10,代码来源:RevertUiTest.java

示例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"));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:FoldingSuite.java

示例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"));

}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:15,代码来源:BaseTest.java

示例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);
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:38,代码来源:MemoryValidationTest.java

示例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(".*"));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:16,代码来源:LessCompletionTest.java

示例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(".*"));
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:12,代码来源:VersioningSystemTest.java

示例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(".*"));

}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:GapsTest.java

示例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(".*")
            );
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:32,代码来源:StableSuite.java

示例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(".*"));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:BasicSearchTest.java

示例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(".*"));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:AddingNewKeyAndValuesTest.java

示例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));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:10,代码来源:RenameFormClassTest.java

示例15: suite

import org.netbeans.junit.NbModuleSuite; //导入方法依赖的package包/类
public static Test suite() {
    return NbModuleSuite.create(
            NbModuleSuite.createConfiguration(CreateGetterSetterTest.class).enableModules(".*").clusters(".*"));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:CreateGetterSetterTest.java


注:本文中的org.netbeans.junit.NbModuleSuite.create方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。