Java Code Examples for junit.framework.TestSuite

The following code examples are extracted from open source projects. You can click to vote up the examples that are useful to you.

Example 1

From project fitnesse, under directory /src/fitnesse/testutil/.

Source file: TestSuiteMaker.java

  19 
vote

public static Test makeSuite(String name,Class<?>[] tests){
  TestSuite suite=new TestSuite(name);
  for (int i=0; i < tests.length; i++) {
    Class<?> test=tests[i];
    try {
      if (isSuite(test))       suite.addTest(getSuite(test));
 else       suite.addTest(new TestSuite(test));
    }
 catch (    Exception e) {
      System.err.println("Problem adding test to suite: " + test.getName());
    }
  }
  return suite;
}
 

Example 2

From project agraph-java-client, under directory /src/test/.

Source file: AGGraphMakerTest.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTestSuite(AGGraphMakerTest.class);
  TestSetup wrapper=new TestSetup(suite){
    protected void setUp(){
      setUpOnce();
    }
    protected void tearDown(){
      tearDownOnce();
    }
  }
;
  return wrapper;
}
 

Example 3

From project android_packages_apps_Gallery, under directory /tests/src/com/android/camera/.

Source file: StressTests.java

  18 
vote

public static Test suite(){
  TestSuite result=new TestSuite();
  result.addTestSuite(SwitchPreview.class);
  result.addTestSuite(ImageCapture.class);
  result.addTestSuite(CameraLatency.class);
  result.addTestSuite(CameraStartUp.class);
  return result;
}
 

Example 4

From project apb, under directory /modules/apb/src/apb/testrunner/.

Source file: JUnit3TestSet.java

  18 
vote

@Nullable static JUnit3TestSet buildTestSet(Class<Object> testClass,String singleTest){
  final Method method=getSuiteMethod(testClass);
  final TestSuite suite;
  if (method == null) {
    suite=buildSuite(testClass,singleTest);
    if (suite == null) {
      return null;
    }
  }
 else {
    suite=null;
  }
  return new JUnit3TestSet(testClass,method,suite);
}
 

Example 5

From project aws-toolkit-for-eclipse, under directory /com.amazonaws.eclipse.datatools.enablement.simpledb.editor.test/src/com/amazonaws/eclipse/datatools/enablement/simpledb/editor/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for com.amazonaws.eclipse.datatools.enablement.simpledb");
  suite.addTestSuite(EditorTest.class);
  suite.addTestSuite(SDBDataAccessorTest.class);
  return suite;
}
 

Example 6

From project ballroom, under directory /widgets/src/test/java/org/jboss/ballroom/testsuites/.

Source file: BallRoomTestSuite.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTestSuite(DefaultGroupRendererTest.class);
  suite.addTestSuite(FormTest.class);
  suite.addTestSuite(ListBoxItemTest.class);
  suite.addTestSuite(TextAreaItemTest.class);
  suite.addTestSuite(UnitBoxItemTest.class);
  return suite;
}
 

Example 7

From project beam-third-party, under directory /beam-meris-veg/src/test/java/org/esa/beam/processor/baer/.

Source file: BaerAllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTest(BaerConstantsTest.suite());
  suite.addTest(BaerRequestElementFactoryTest.suite());
  suite.addTest(org.esa.beam.processor.baer.utils.BaerAllTests.suite());
  suite.addTest(org.esa.beam.processor.baer.algorithm.BaerAllTests.suite());
  suite.addTest(org.esa.beam.processor.baer.auxdata.BaerAllTests.suite());
  return suite;
}
 

Example 8

From project beanstalker, under directory /beanstalk-maven-plugin/src/test/java/br/com/ingenieux/mojo/beanstalk/.

Source file: MinimalTestSuite.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite(MinimalTestSuite.class.getName());
  suite.addTestSuite(CheckAvailabilityMojoTest.class);
  suite.addTestSuite(BootstrapTest.class);
  return suite;
}
 

Example 9

From project cas, under directory /cas-server-compatibility/src/test/java/org/jasig/cas/login/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("CAS 2 compatibility tests");
  suite.addTestSuite(ValidateCompatibilityTests.class);
  suite.addTestSuite(LoginAsCredentialsAcceptorCompatibilityTests.class);
  suite.addTestSuite(ProxyValidateCompatibilityTests.class);
  suite.addTestSuite(LogoutCompatibilityTests.class);
  suite.addTestSuite(LoginAsCredentialsRequestorCompatibilityTests.class);
  suite.addTestSuite(ServiceValidateCompatibilityTests.class);
  return suite;
}
 

Example 10

From project cascading, under directory /src/test/cascading/detail/.

Source file: EachEachPipeAssemblyPlatformTest.java

  18 
vote

public static Test suite() throws Exception {
  TestSuite suite=new TestSuite();
  Properties properties=loadProperties("op.op.properties");
  Map<String,Pipe> pipes=buildOpPipes(properties,null,new Pipe("each.each"),new EachAssemblyFactory(),LHS_ARGS_FIELDS,LHS_DECL_FIELDS,LHS_SELECT_FIELDS,LHS_VALUE);
  for (  String name : pipes.keySet())   makeSuites(properties,buildOpPipes(properties,name,pipes.get(name),new EachAssemblyFactory(),RHS_ARGS_FIELDS,RHS_DECL_FIELDS,RHS_SELECT_FIELDS,RHS_VALUE),suite,EachEachPipeAssemblyPlatformTest.class);
  return suite;
}
 

Example 11

From project clutter, under directory /src/clutter/.

Source file: Suites.java

  18 
vote

private static Test makeSuite(Predicate<Class> predicate) throws ClassNotFoundException {
  TestSuite testSuite=new TestSuite();
  SimpleTestCollector testCollector=new SimpleTestCollector();
  Enumeration enumeration=testCollector.collectTests();
  while (enumeration.hasMoreElements()) {
    Class klass=Class.forName((String)enumeration.nextElement());
    if (predicate.apply(klass)) {
      testSuite.addTestSuite(klass);
    }
  }
  return testSuite;
}
 

Example 12

From project collections-generic, under directory /src/test/org/apache/commons/collections15/bag/.

Source file: TestAll.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTest(TestHashBag.suite());
  suite.addTest(TestPredicatedBag.suite());
  suite.addTest(TestPredicatedSortedBag.suite());
  suite.addTest(TestTransformedBag.suite());
  suite.addTest(TestTransformedSortedBag.suite());
  suite.addTest(TestTreeBag.suite());
  suite.addTest(TestTypedBag.suite());
  suite.addTest(TestTypedSortedBag.suite());
  return suite;
}
 

Example 13

From project core_4, under directory /legacy-tests/src/test/java/org/ajax4jsf/framework/ajax/xmlfilter/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for org.ajax4jsf.webapp");
  suite.addTestSuite(CacheContentTest.class);
  suite.addTestSuite(NekkoParserTest.class);
  return suite;
}
 

Example 14

From project core_5, under directory /exo.core.component.web.css/src/test/java/org/exoplatform/services/web/css/comment/.

Source file: Tests.java

  18 
vote

public static TestSuite suite(){
  TestSuite suite=new TestSuite();
  suite.addTestSuite(PushbackReaderTestCase.class);
  suite.addTestSuite(CommentFilterTestCase.class);
  return suite;
}
 

Example 15

From project des, under directory /daemon/lib/apache-log4j-1.2.16/tests/src/java/org/apache/log4j/customLogger/.

Source file: XLoggerTestCase.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTest(new XLoggerTestCase("test1"));
  suite.addTest(new XLoggerTestCase("test2"));
  return suite;
}
 

Example 16

From project eclipse-integration-cloudfoundry, under directory /org.cloudfoundry.ide.eclipse.server.tests/src/org/cloudfoundry/ide/eclipse/server/tests/.

Source file: AllCloudFoundryTests.java

  18 
vote

public static Test suite(boolean heartbeat){
  TestSuite suite=new ManagedTestSuite(AllCloudFoundryTests.class.getName());
  if (!heartbeat) {
    suite.addTestSuite(CloudFoundryServerBehaviourTest.class);
  }
  suite.addTestSuite(ServerCredentialsStoreTest.class);
  suite.addTestSuite(CloudFoundryServerTest.class);
  suite.addTestSuite(CloudUtilTest.class);
  suite.addTestSuite(DeploymentURLTest.class);
  suite.addTestSuite(CloudFoundryServicesTest.class);
  suite.addTestSuite(CloudFoundryConsoleTest.class);
  suite.addTestSuite(CaldecottTunnelTest.class);
  return suite;
}
 

Example 17

From project eclipse-integration-commons, under directory /org.springsource.ide.eclipse.commons.tests/src/org/springsource/ide/eclipse/commons/tests/.

Source file: AllIdeTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite(AllIdeTests.class.getName());
  suite.addTestSuite(HelpPluginTest.class);
  suite.addTestSuite(ConfiguratorImporterTest.class);
  suite.addTestSuite(ConfiguratorActionTest.class);
  suite.addTestSuite(DescriptorMatcherTest.class);
  suite.addTestSuite(ResourceProviderTest.class);
  suite.addTestSuite(CommandHistoryTest.class);
  suite.addTestSuite(UpdateNotificationTest.class);
  return suite;
}
 

Example 18

From project eclipse.pde.build, under directory /org.eclipse.pde.build.tests/src/org/eclipse/pde/build/tests/.

Source file: P2TestSuite.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test Suite for p2 bits of org.eclipse.pde.build");
  suite.addTestSuite(P2Tests.class);
  suite.addTestSuite(PublishingTests.class);
  return suite;
}
 

Example 19

From project eclipse.platform.runtime, under directory /tests/org.eclipse.core.expressions.tests/src/org/eclipse/core/internal/expressions/tests/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("All Expression Language Tests");
  suite.addTest(PropertyTesterTests.suite());
  suite.addTest(ExpressionTests.suite());
  suite.addTest(ExpressionInfoTests.suite());
  suite.addTest(CountExpressionTest.suite());
  return suite;
}
 

Example 20

From project eclipsefp, under directory /net.sf.eclipsefp.haskell.core.jparser.test/src/net/sf/eclipsefp/haskell/core/jparser/ast/test/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for net.sf.eclipsefp.haskell.core.jparser.ast.test");
  suite.addTestSuite(FunctionBindingTest.class);
  suite.addTestSuite(DataDeclarationTest.class);
  suite.addTestSuite(TypeSignatureTest.class);
  suite.addTestSuite(SourceLocationTest.class);
  suite.addTestSuite(ClassDeclarationTest.class);
  suite.addTestSuite(ModuleTest.class);
  return suite;
}
 

Example 21

From project edna-rcp, under directory /org.edna.kernel.test/src/org/edna/kernel/test/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for org.edna_site.eclipse.kernel.test");
  suite.addTestSuite(TestCaseLauncher.class);
  suite.addTestSuite(TestCaseTestLauncherView.class);
  suite.addTestSuite(TestCaseXSDataCommon.class);
  return suite;
}
 

Example 22

From project erjang, under directory /src/test/java/erjang/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for erjang");
  TestSuite otpCompileSuite=new TestSuite("Compiling OTP");
  suite.addTest(otpCompileSuite);
  TestSuite coverageRunSuite=new TestSuite("Coverage run tests");
  Map<File,List<File>> testsErl=new HashMap<File,List<File>>();
  find_files(testsErl,new File("src/test/erl/deterministic"),".erl");
  buildTestHierarchy(testsErl,coverageRunSuite,OfflineComparisonTestCase.class);
  suite.addTest(coverageRunSuite);
  return suite;
}
 

Example 23

From project etherpad, under directory /infrastructure/rhino1_7R1/testsrc/org/mozilla/javascript/drivers/.

Source file: StandardTests.java

  18 
vote

private static void addSuites(TestSuite topLevel,File testDir,Properties excludes,int optimizationLevel){
  File[] subdirs=testDir.listFiles(ShellTest.DIRECTORY_FILTER);
  Arrays.sort(subdirs);
  for (int i=0; i < subdirs.length; i++) {
    File subdir=subdirs[i];
    String name=subdir.getName();
    TestSuite testSuite=new TestSuite(name);
    addCategories(testSuite,subdir,name + "/",excludes,optimizationLevel);
    topLevel.addTest(testSuite);
  }
}
 

Example 24

From project eucalyptus, under directory /clc/modules/storage-manager/src/edu/ucsb/eucalyptus/cloud/ws/tests/.

Source file: WalrusBucketTests.java

  18 
vote

public static Test suite(){
  final TestSuite suite=new TestSuite();
  suite.addTestSuite(BukkitTest.class);
  suite.addTestSuite(ObjectTest.class);
  return suite;
}
 

Example 25

From project FBReaderJ, under directory /obsolete/test/org/test/fbreader/collection/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTestSuite(TestBookCollection.class);
  suite.addTestSuite(TestBookList.class);
  return suite;
}
 

Example 26

From project Flume-Hive, under directory /src/ahocorasick/org/arabidopsis/ahocorasick/.

Source file: TestAll.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTestSuite(TestState.class);
  suite.addTestSuite(TestAhoCorasick.class);
  suite.addTestSuite(TestQueue.class);
  return suite;
}
 

Example 27

From project frameworks_opt, under directory /vcard/tests/src/com/android/vcard/tests/.

Source file: VCardTestRunner.java

  18 
vote

@Override public TestSuite getAllTests(){
  TestSuite suite=new InstrumentationTestSuite(this);
  suite.addTestSuite(VCardEntryTests.class);
  suite.addTestSuite(VCardParserTests.class);
  suite.addTestSuite(VCardUtilsTests.class);
  suite.addTestSuite(VCardTestUtilsTests.class);
  suite.addTestSuite(VCardImporterTests.class);
  suite.addTestSuite(VCardExporterTests.class);
  suite.addTestSuite(VCardJapanizationTests.class);
  suite.addTestSuite(VCardImporterNestTests.class);
  return suite;
}
 

Example 28

From project freemind, under directory /freemind/tests/freemind/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("AllTests");
  suite.addTest(new TestSuite(Base64Tests.class));
  suite.addTest(new TestSuite(FindTextTests.class));
  suite.addTest(new TestSuite(HtmlConversionTests.class));
  suite.addTest(new TestSuite(TransformTest.class));
  suite.addTest(new TestSuite(MarshallerTests.class));
  suite.addTest(new TestSuite(SignedScriptTests.class));
  suite.addTest(new TestSuite(LastStorageManagementTests.class));
  suite.addTest(new TestSuite(ToolsTests.class));
  suite.addTest(new TestSuite(ExportTests.class));
  suite.addTest(new TestSuite(XmlBindingToolsTest.class));
  return suite;
}
 

Example 29

From project gnupg-for-java, under directory /src/junit/com/freiheit/gnupg/.

Source file: GnuPGTestSuite.java

  18 
vote

public static Test suite(){
  System.out.println("suite()");
  TestSuite suite=new TestSuite(GnuPGTestSuite.class);
  GnuPGContext ctx=getContext();
  String person1Key=" <GnupgKeyParms format=\"internal\">\n" + "Key-Type: DSA\n" + "Key-Length: 1024\n"+ "Subkey-Type: ELG-E\n"+ "Subkey-Length: 1024\n"+ "Name-Real: alpha\n"+ "Name-Comment: just a test\n"+ "Name-Email: [email protected]\n"+ "Expire-Date: 0\n"+ "Passphrase: alpha\n"+ "</GnupgKeyParms>";
  ctx.genKey(person1Key,null,null);
  String person2Key=" <GnupgKeyParms format=\"internal\">\n" + "Key-Type: DSA\n" + "Key-Length: 1024\n"+ "Subkey-Type: ELG-E\n"+ "Subkey-Length: 1024\n"+ "Name-Real: beta\n"+ "Name-Comment: just a test\n"+ "Name-Email: [email protected]\n"+ "Expire-Date: 0\n"+ "Passphrase: beta\n"+ "</GnupgKeyParms>";
  ctx.genKey(person2Key,null,null);
  System.out.println("done suite()");
  return suite;
}
 

Example 30

From project google-api-translate-java, under directory /src/test/java/com/google/api/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for test");
  suite.addTestSuite(TranslateTest.class);
  suite.addTestSuite(DetectTest.class);
  return suite;
}
 

Example 31

From project grails-ide, under directory /org.grails.ide.eclipse.groovy.debug.tests/src/org/grails/ide/eclipse/groovy/debug/tests/.

Source file: AllGroovyDebugTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Run of all Groovy Debug tests");
  suite.addTestSuite(SanityChecker.class);
  suite.addTestSuite(GroovyDebugTests.class);
  suite.addTestSuite(GroovyConditionalBreakpointsTests.class);
  return suite;
}
 

Example 32

From project Grammar-Kit, under directory /tests/org/intellij/grammar/.

Source file: BnfTestSuite.java

  18 
vote

public static Test suite(){
  final TestSuite testSuite=new TestSuite();
  testSuite.addTestSuite(BnfParserTest.class);
  testSuite.addTestSuite(BnfGeneratorTest.class);
  testSuite.addTestSuite(ExpressionParserTest.class);
  testSuite.addTestSuite(BnfAttributeDescriptionTest.class);
  testSuite.addTestSuite(BnfFirstNextTest.class);
  testSuite.addTestSuite(BnfCompletionTest.class);
  testSuite.addTestSuite(BnfInspectionTest.class);
  testSuite.addTestSuite(BnfInlineRuleTest.class);
  testSuite.addTestSuite(BnfIntroduceRuleTest.class);
  testSuite.addTestSuite(BnfFlipChoiceIntentionTest.class);
  return testSuite;
}
 

Example 33

From project guice-jit-providers, under directory /extensions/grapher/test/com/google/inject/grapher/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTestSuite(AbstractInjectorGrapherTest.class);
  suite.addTestSuite(ShortNameFactoryTest.class);
  suite.addTestSuite(TransitiveDependencyVisitorTest.class);
  return suite;
}
 

Example 34

From project Guit, under directory /src/test/java/com/guit/client/binder/prefix/client/.

Source file: PrefixTestSuite.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test binder prefixes");
  suite.addTestSuite(PrefixAGwtTest.class);
  suite.addTestSuite(PrefixBGwtTest.class);
  suite.addTestSuite(PrefixCGwtTest.class);
  suite.addTestSuite(PrefixINVGwtTest.class);
  return suite;
}
 

Example 35

From project hbase-rdf_1, under directory /src/test/java/com/talis/hbase/rdf/test/graph/.

Source file: TestHBaseRdfGraph.java

  18 
vote

public static Test suite(){
  TestSuite ts=new TestSuite();
  ts.addTestSuite(TestHBaseRdfSimpleGraph.class);
  ts.addTestSuite(TestHBaseRdfVertPartGraph.class);
  ts.addTestSuite(TestHBaseRdfIndexedGraph.class);
  ts.addTestSuite(TestHBaseRdfVPIndexedGraph.class);
  ts.addTestSuite(TestHBaseRdfHybridGraph.class);
  ts.addTestSuite(TestHBaseRdfHashGraph.class);
  return ts;
}
 

Example 36

From project heritrix3, under directory /commons/src/main/java/org/archive/util/.

Source file: TestUtils.java

  18 
vote

public static TestSuite makeSuite(File srcRoot,File dir) throws ClassNotFoundException {
  TestSuite result=new TestSuite("All Tests");
  if (!dir.exists()) {
    throw new IllegalArgumentException(dir + " does not exist.");
  }
  scanSuite(result,srcRoot,dir);
  return result;
}
 

Example 37

From project hibernate-tools, under directory /src/test/org/hibernate/tool/ant/.

Source file: AntAllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for org.hibernate.tool.ant");
  suite.addTestSuite(AntHibernateToolTest.class);
  suite.addTestSuite(JavaFormatterTest.class);
  return suite;
}
 

Example 38

From project hornetq-version-tests, under directory /src/test/java/org/hornetq/jms/.

Source file: JoramAggregationTest.java

  18 
vote

public static junit.framework.Test suite() throws Exception {
  TestSuite suite=new TestSuite();
  suite.addTest(new TestProxy(TopicConnectionTestIT.suite(),TopicConnectionTestIT.class.getName()));
  suite.addTest(new TestProxy(ConnectionTestIT.suite(),ConnectionTestIT.class.getName()));
  return new TestAggregation(suite);
}
 

Example 39

From project jboss-reflect, under directory /src/test/java/org/jboss/test/beaninfo/test/.

Source file: BeanInfoTestSuite.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("BeanInfo Tests");
  suite.addTest(BeanInfoUnitTestCase.suite());
  suite.addTest(BeanInfoUtilTestCase.suite());
  suite.addTest(BeanInfoCacheTestCase.suite());
  suite.addTest(FieldAccessRestrictionTestCase.suite());
  suite.addTest(MethodAccessRestrictionTestCase.suite());
  return suite;
}
 

Example 40

From project jena-tdb, under directory /src/test/java/com/hp/hpl/jena/tdb/junit/.

Source file: TestFactoryTDB.java

  18 
vote

public static TestSuite makeSuite(String manifestFile,String testRootName,DatasetGraphMakerTDB factory){
  TestFactoryTDB f=new TestFactoryTDB(testRootName,factory);
  TestSuite ts=f.process(manifestFile);
  if (testRootName != null)   ts.setName(testRootName + ts.getName());
  return ts;
}
 

Example 41

From project jhilbert, under directory /src/test/java/jhilbert/.

Source file: AppTest.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTestSuite(AppTest.class);
  suite.addTestSuite(MainTest.class);
  suite.addTestSuite(StorageTest.class);
  suite.addTestSuite(WikiInputStreamTest.class);
  suite.addTestSuite(CharTest.class);
  return suite;
}
 

Example 42

From project jPOS-EE, under directory /modules/minigl/src/test/java/org/jpos/gl/stress/.

Source file: StressTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTest(new TestSuite(ImportTest.class));
  suite.addTest(new TestSuite(CreateAccounts.class));
  suite.addTest(new TestSuite(CreateTransactions.class));
  suite.addTest(new TestSuite(SummarizeTransactions.class));
  return suite;
}
 

Example 43

From project js4emf, under directory /org.eclipse.emf.js4emf.tests/src/org/eclipse/emf/js4emf/ecore/internal/.

Source file: AllTests.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for org.eclipse.e4.emf.ecore.javascript");
  suite.addTestSuite(JavascriptSupportTest.class);
  suite.addTestSuite(EcoreJavascriptTest.class);
  suite.addTestSuite(JsWrapperTest.class);
  suite.addTestSuite(JavascriptDelegatesTest.class);
  suite.addTestSuite(FeatureMatcherFeatureValueProviderTest.class);
  suite.addTestSuite(NameAnnotationFeatureMatcherTest.class);
  return suite;
}
 

Example 44

From project jsfunit, under directory /jboss-jsfunit-analysis/src/main/java/org/jboss/jsfunit/analysis/el/.

Source file: ELTestSuiteBuilder.java

  18 
vote

public static TestSuite getTestSuite(final Iterable<ELBundle> elIter,final Map<String,Class<?>> beanMap){
  final TestSuite out=new TestSuite();
  for (  final ELBundle bundle : elIter) {
    out.addTest(new ELTestCase(bundle,beanMap));
  }
  return out;
}
 

Example 45

From project JSimpleTracker, under directory /libs/apache-log4j-1.2.16/apache-log4j-1.2.16/tests/src/java/org/apache/log4j/customLogger/.

Source file: XLoggerTestCase.java

  18 
vote

public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.addTest(new XLoggerTestCase("test1"));
  suite.addTest(new XLoggerTestCase("test2"));
  return suite;
}
 

Example 46

From project activemq-apollo, under directory /apollo-itests/src/test/java/org/apache/activemq/apollo/.

Source file: CombinationTestSupport.java

  17 
vote

public static Test suite(Class<? extends CombinationTestSupport> clazz){
  TestSuite suite=new TestSuite();
  ArrayList<String> names=new ArrayList<String>();
  Method[] methods=clazz.getMethods();
  for (int i=0; i < methods.length; i++) {
    String name=methods[i].getName();
    if (names.contains(name) || !isPublicTestMethod(methods[i])) {
      continue;
    }
    names.add(name);
    Test test=TestSuite.createTest(clazz,name);
    if (test instanceof CombinationTestSupport) {
      CombinationTestSupport[] combinations=((CombinationTestSupport)test).getCombinations();
      for (int j=0; j < combinations.length; j++) {
        suite.addTest(combinations[j]);
      }
    }
 else {
      suite.addTest(test);
    }
  }
  return suite;
}
 

Example 47

From project Cinch, under directory /test/com/palantir/ptoss/cinch/.

Source file: AllCinchTests.java

  17 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Palantir Cinch Tests");
  suite.addTestSuite(BindingsTest.class);
  suite.addTestSuite(BindingsSubclassTest.class);
  suite.addTestSuite(CantFindGetterSetterTest.class);
  suite.addTestSuite(WrongTypeTest.class);
  suite.addTestSuite(InaccessibleControllerMethodTest.class);
  suite.addTestSuite(AbstractBoundMethodTest.class);
  suite.addTestSuite(BindingContextIndexTest.class);
  suite.addTestSuite(BindingContextTest.class);
  suite.addTestSuite(EnabledIfTest.class);
  suite.addTestSuite(ActionTest.class);
  suite.addTestSuite(ViewSubclassModelNameCollisionTest.class);
  suite.addTestSuite(NotBindableTest.class);
  suite.addTestSuite(SubclassEdgeCasesTest.class);
  suite.addTestSuite(NegativeActionTest.class);
  suite.addTestSuite(CallOnUpdateTest.class);
  suite.addTestSuite(BoundJLabelTest.class);
  suite.addTestSuite(BoundJComboBoxTest.class);
  suite.addTestSuite(BoundJProgressBarTest.class);
  suite.addTestSuite(BoundJCheckBoxTest.class);
  suite.addTestSuite(BoundJCheckBoxMenuItemTest.class);
  suite.addTestSuite(BoundJToggleButtonTest.class);
  suite.addTestSuite(BoundJSliderTest.class);
  suite.addTestSuite(BoundJTextComponentTest.class);
  suite.addTestSuite(BoundJListTest.class);
  return suite;
}
 

Example 48

From project commons-compress, under directory /src/test/java/org/apache/commons/compress/.

Source file: ArchiveReadTests.java

  17 
vote

public static TestSuite suite() throws IOException {
  TestSuite suite=new TestSuite("ArchiveReadTests");
  File arcdir=new File(classLoader.getResource("archives").getFile());
  assertTrue(arcdir.exists());
  File listing=new File(arcdir,"files.txt");
  assertTrue("files.txt is readable",listing.canRead());
  BufferedReader br=new BufferedReader(new FileReader(listing));
  String line;
  while ((line=br.readLine()) != null) {
    if (line.startsWith("#")) {
      continue;
    }
    fileList.add(line);
  }
  br.close();
  File[] files=arcdir.listFiles();
  for (  final File file : files) {
    if (file.getName().endsWith(".txt")) {
      continue;
    }
    TestSuite namedSuite=new TestSuite(file.getName());
    Test test=new ArchiveReadTests("testArchive",file);
    namedSuite.addTest(test);
    suite.addTest(namedSuite);
  }
  return suite;
}
 

Example 49

From project crash, under directory /jcr/core/src/test/java/org/crsh/jcr/.

Source file: AbstractJCRCommandTestCase.java

  17 
vote

public static TestSuite createTestSuite(){
  TestSuite suite=new TestSuite();
  suite.addTest(new TestSuite(AddMixinTestCase.class));
  suite.addTest(new TestSuite(AddNodeTestCase.class));
  suite.addTest(new TestSuite(CdTestCase.class));
  suite.addTest(new TestSuite(CopyTestCase.class));
  suite.addTest(new TestSuite(MoveTestCase.class));
  suite.addTest(new TestSuite(RemoveTestCase.class));
  suite.addTest(new TestSuite(SelectTestCase.class));
  suite.addTest(new TestSuite(SetTestCase.class));
  suite.addTest(new TestSuite(ShellTestCase.class));
  suite.addTest(new TestSuite(WorkspaceTestCase.class));
  suite.addTest(new TestSuite(NodeMetaClassTestCase.class));
  return suite;
}
 

Example 50

From project eclipse-integration-gradle, under directory /org.springsource.ide.eclipse.gradle.core.test/src/org/springsource/ide/eclipse/gradle/core/test/.

Source file: AllGradleCoreTests.java

  17 
vote

public static TestSuite suite() throws Exception {
  deleteInvalidGradleFolder();
  JavaUtils.ensureJava16Default();
  TestSuite suite=new ManagedTestSuite(AllGradleCoreTests.class.getName());
  suite.addTestSuite(GradleRefreshPreferencesTest.class);
  suite.addTestSuite(ArrayEncoderTest.class);
  suite.addTestSuite(TopoSortTest.class);
  suite.addTestSuite(GradleProjectTest.class);
  suite.addTestSuite(GradleImportTests.class);
  suite.addTestSuite(GradleTaskRunTest.class);
  suite.addTestSuite(GradleMenuEnablementTest.class);
  suite.addTestSuite(GradleDSLDTests.class);
  suite.addTestSuite(RefreshAllActionCoreTests.class);
  suite.addTestSuite(ClasspathContainerErrorMarkersTests.class);
  suite.addTestSuite(DistributionValidatorTest.class);
  suite.addTestSuite(ArgumentsParserTests.class);
  suite.addTestSuite(GradleSampleProjectTest.class);
  suite.addTestSuite(NewProjectWizardValidatorTest.class);
  return suite;
}
 

Example 51

From project entando-core-engine, under directory /src/test/java/com/agiletec/apsadmin/.

Source file: AllTests.java

  17 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for apsadmin");
  System.out.println("Test for apsadmin");
  suite.addTestSuite(TestLangAction.class);
  suite.addTestSuite(TestLangFinderAction.class);
  suite.addTestSuite(TestLocaleStringAction.class);
  suite.addTestSuite(TestLocaleStringFinderAction.class);
  suite.addTestSuite(TestBaseAdminAction.class);
  suite.addTestSuite(TestSystemParamsUtils.class);
  suite.addTestSuite(TestDispatchForward.class);
  suite.addTestSuite(TestLoginAction.class);
  suite.addTestSuite(TestBaseCommonAction.class);
  suite.addTestSuite(TestShortcutConfigAction.class);
  suite.addTestSuite(TestApiServiceFinderAction.class);
  suite.addTestSuite(TestCategoryAction.class);
  suite.addTestSuite(TestPageAction.class);
  suite.addTestSuite(TestPageConfigAction.class);
  suite.addTestSuite(TestPageTreeAction.class);
  suite.addTestSuite(TestShowletsViewerAction.class);
  suite.addTestSuite(TestShowletTypeAction.class);
  suite.addTestSuite(TestSimpleShowletConfigAction.class);
  suite.addTestSuite(TestNavigatorShowletConfigAction.class);
  suite.addTestSuite(TestEntityManagersAction.class);
  suite.addTestSuite(TestShortcutManager.class);
  suite.addTestSuite(TestUserAction.class);
  suite.addTestSuite(TestUserFinderAction.class);
  suite.addTestSuite(TestUserToAuthoritiesAction.class);
  suite.addTestSuite(TestAuthorityToUsersAction.class);
  suite.addTestSuite(TestGroupAction.class);
  suite.addTestSuite(TestGroupFinderAction.class);
  suite.addTestSuite(TestRoleAction.class);
  suite.addTestSuite(TestRoleFinderAction.class);
  return suite;
}
 

Example 52

From project github-java-sdk, under directory /core/src/test/java/com/github/api/v2/services/.

Source file: AllTests.java

  17 
vote

/** 
 * Suite.
 * @return the test
 */
public static Test suite(){
  TestSuite suite=new TestSuite("Test for com.github.api.v2.services");
  suite.addTestSuite(CommitServiceTest.class);
  suite.addTestSuite(IssueServiceTest.class);
  suite.addTestSuite(NetworkServiceTest.class);
  suite.addTestSuite(GistServiceTest.class);
  suite.addTestSuite(OrganizationServiceTest.class);
  suite.addTestSuite(FeedServiceTest.class);
  suite.addTestSuite(RepositoryServiceTest.class);
  suite.addTestSuite(PullRequestServiceTest.class);
  suite.addTestSuite(OAuthServiceTest.class);
  suite.addTestSuite(ObjectServiceTest.class);
  suite.addTestSuite(UserServiceTest.class);
  suite.addTestSuite(JobServiceTest.class);
  return suite;
}
 

Example 53

From project grails-gdoc-engine, under directory /src/test/java/org/radeox/.

Source file: PerformanceTests.java

  17 
vote

public static Test suite() throws IOException {
  File wikiTxt=new File("wiki.txt");
  BufferedReader reader=new BufferedReader(new FileReader(wikiTxt.getCanonicalFile()));
  StringBuffer input=new StringBuffer();
  String tmp;
  while ((tmp=reader.readLine()) != null) {
    input.append(tmp);
  }
  RenderEngine engine=new BaseRenderEngine();
  System.err.println(engine.render("__initialized__",new BaseRenderContext()));
  TestSuite s=new TestSuite();
  long maxElapsedTime=30 * 1000;
  StringBuffer testString=new StringBuffer();
  for (int i=0; i < 10; i++) {
    testString.append(input);
    Test renderEngineTest=new RenderEnginePerformanceTest(testString.toString());
    Test timedTest=new TimedTest(renderEngineTest,maxElapsedTime,false);
    s.addTest(timedTest);
  }
  return s;
}
 

Example 54

From project hdiv, under directory /hdiv-core/src/test/java/org/hdiv/.

Source file: AllCoreTests.java

  17 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for org.hdiv");
  suite.addTestSuite(CipherHttpTest.class);
  suite.addTestSuite(EditableParameterValidationTest.class);
  suite.addTestSuite(DataComposerMemoryTest.class);
  suite.addTestSuite(DataComposerHashTest.class);
  suite.addTestSuite(DataComposerCipherTest.class);
  suite.addTestSuite(DataValidatorTest.class);
  suite.addTestSuite(ValidatorHelperTest.class);
  suite.addTestSuite(UidGeneratorTest.class);
  suite.addTestSuite(StateCacheTest.class);
  suite.addTestSuite(StateUtilTest.class);
  suite.addTestSuite(FormUrlProcessorTest.class);
  suite.addTestSuite(LinkUrlProcessorTest.class);
  suite.addTestSuite(EncodingUtilTest.class);
  return suite;
}
 

Example 55

From project http-testing-harness, under directory /junit-runner/src/main/java/org/sonatype/tests/http/runner/junit/.

Source file: Junit3SuiteConfiguration.java

  17 
vote

/** 
 * Create a  {@link TestSuite} containing all tests for the given class. A test consists of a test method declared inor inherited by the class, combined with a  {@link SuiteConfigurator}.
 * @param cls the class to scan.
 * @return the test suite to run.
 * @throws Exception when reflection fails with the given class.
 */
public static TestSuite suite(Class<? extends Junit3SuiteConfiguration> cls) throws Exception {
  TestSuite suite=new TestSuite();
  suite.setName(cls.getName());
  List<Method> testMethods=new LinkedList<Method>();
  Method[] methods=cls.getMethods();
  for (  Method method : methods) {
    if (method.getName().startsWith("test")) {
      testMethods.add(method);
    }
  }
  Junit3SuiteConfiguration test=cls.getConstructor().newInstance();
  List<SuiteConfigurator> cfgs=ConfigurationHelper.computeConfigurators(cls);
  for (  SuiteConfigurator cfg : cfgs) {
    for (    Method method : testMethods) {
      ConfiguratorTest cfgTest=new ConfiguratorTest(method,test,cfg);
      cfgTest.setName(String.format("%s %s",method.getName(),cfg.getName()));
      suite.addTest(cfgTest);
    }
  }
  return suite;
}
 

Example 56

From project isohealth, under directory /isohealth/src/test/com/isobar/isohealth/.

Source file: ServiceTests.java

  17 
vote

public static Test suite(){
  TestSuite suite=new TestSuite(ServiceTests.class.getName());
  suite.addTestSuite(BackgroundActivityServiceTest.class);
  suite.addTestSuite(DiabetesMeasurementServiceTest.class);
  suite.addTestSuite(FitnessActivityServiceTest.class);
  suite.addTestSuite(GeneralMeasurementServiceTest.class);
  suite.addTestSuite(NutritionMeasurementServiceTest.class);
  suite.addTestSuite(PersonalRecordServiceTest.class);
  suite.addTestSuite(ProfileServiceTest.class);
  suite.addTestSuite(SettingsServiceTest.class);
  suite.addTestSuite(SleepMeasurementServiceTest.class);
  suite.addTestSuite(StreetTeamMembershipServiceTest.class);
  suite.addTestSuite(StrengthTrainingActivityServiceTest.class);
  suite.addTestSuite(UserServiceTest.class);
  suite.addTestSuite(WeightMeasurementServiceTest.class);
  return suite;
}
 

Example 57

From project jAPS2, under directory /src/test/com/agiletec/apsadmin/.

Source file: AllTests.java

  17 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for apsadmin");
  System.out.println("Test for apsadmin");
  suite.addTestSuite(TestLangAction.class);
  suite.addTestSuite(TestLangFinderAction.class);
  suite.addTestSuite(TestLocaleStringAction.class);
  suite.addTestSuite(TestLocaleStringFinderAction.class);
  suite.addTestSuite(TestBaseAdminAction.class);
  suite.addTestSuite(TestSystemParamsUtils.class);
  suite.addTestSuite(TestDispatchForward.class);
  suite.addTestSuite(TestLoginAction.class);
  suite.addTestSuite(TestBaseCommonAction.class);
  suite.addTestSuite(TestShortcutConfigAction.class);
  suite.addTestSuite(TestCategoryAction.class);
  suite.addTestSuite(TestPageAction.class);
  suite.addTestSuite(TestPageConfigAction.class);
  suite.addTestSuite(TestPageTreeAction.class);
  suite.addTestSuite(TestShowletsViewerAction.class);
  suite.addTestSuite(TestShowletTypeAction.class);
  suite.addTestSuite(TestSimpleShowletConfigAction.class);
  suite.addTestSuite(TestNavigatorShowletConfigAction.class);
  suite.addTestSuite(TestEntityManagersAction.class);
  suite.addTestSuite(TestShortcutManager.class);
  suite.addTestSuite(TestUserAction.class);
  suite.addTestSuite(TestUserFinderAction.class);
  suite.addTestSuite(TestUserToAuthoritiesAction.class);
  suite.addTestSuite(TestAuthorityToUsersAction.class);
  suite.addTestSuite(TestGroupAction.class);
  suite.addTestSuite(TestGroupFinderAction.class);
  suite.addTestSuite(TestRoleAction.class);
  suite.addTestSuite(TestRoleFinderAction.class);
  return suite;
}
 

Example 58

From project jMemorize, under directory /src/jmemorize/core/test/.

Source file: AllTests.java

  17 
vote

public static Test suite(){
  TestSuite suite=new TestSuite("Test for jmemorize.core.test");
  suite.addTestSuite(CardTest.class);
  suite.addTestSuite(CategoryTest.class);
  suite.addTestSuite(LessonProviderTest.class);
  suite.addTestSuite(FormattedTextTest.class);
  suite.addTestSuite(EquivalenceClassSetTest.class);
  suite.addTestSuite(EquivalenceClassSetTest2.class);
  suite.addTestSuite(LearnSessionTest.class);
  suite.addTestSuite(LearnSettingsTest.class);
  suite.addTestSuite(LearnSessionLargeTest.class);
  suite.addTestSuite(LearnSessionShufflingTest.class);
  suite.addTestSuite(LearnHistoryTest.class);
  suite.addTestSuite(LocalizationTest.class);
  suite.addTestSuite(ImageRepositoryTest.class);
  suite.addTestSuite(CSVToolkitTest.class);
  return suite;
}
 

Example 59

From project gwt-maven-plugin, under directory /src/main/java/org/codehaus/mojo/gwt/test/.

Source file: MavenTestRunner.java

  15 
vote

/** 
 * @param test the test
 * @param t a throwable
 * @return a StackTraceWriter to trace the error
 */
private StackTraceWriter getStackTraceWriter(Test test,Throwable t){
  String name=test.getClass().getName();
  String testName="UNKNOWN";
  if (test instanceof TestSuite) {
    testName=((TestSuite)test).getName();
  }
  return new PojoStackTraceWriter(name,testName,t);
}