Search in sources :

Example 51 with TestSuite

use of junit.framework.TestSuite in project pcgen by PCGen.

the class AllJUnitTests method suite.

/**
	 * suite
	 * @return Test
	 */
public static Test suite() {
    TestSuite suite = new TestSuite("All PCGEN Tests");
    suite.addTest(pcgen.core.AllJUnitTests.suite());
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite)

Example 52 with TestSuite

use of junit.framework.TestSuite in project pcgen by PCGen.

the class AllJUnitTests method suite.

/**
	 * suite
	 * @return Test
	 */
public static Test suite() {
    final TestSuite suite = new TestSuite("PCGEN Core Tests");
    suite.addTest(new TestSuite(BioSetTest.class));
    suite.addTest(new TestSuite(ClassTypeTest.class));
    suite.addTest(new TestSuite(EquipmentListTest.class));
    suite.addTest(new TestSuite(EquipmentModifierTest.class));
    suite.addTest(new TestSuite(EquipmentTest.class));
    suite.addTest(new TestSuite(EquipmentUtilitiesTest.class));
    suite.addTest(new TestSuite(GlobalsTest.class));
    suite.addTest(new TestSuite(PCClassTest.class));
    suite.addTest(new TestSuite(PlayerCharacterTest.class));
    suite.addTest(new TestSuite(PObjectTest.class));
    suite.addTest(new TestSuite(PObjectUtilitiesTest.class));
    suite.addTest(new TestSuite(PrereqHandlerTest.class));
    suite.addTest(new TestSuite(CoreUtilityTest.class));
    // core.bonus
    suite.addTest(new TestSuite(pcgen.core.bonus.BonusTest.class));
    // core.chooser
    suite.addTest(new TestSuite(pcgen.core.chooser.DomainChoiceManagerTest.class));
    // core.levelability
    suite.addTest(new TestSuite(pcgen.core.levelability.AddClassSkillsTest.class));
    // core.prereq
    suite.addTest(new TestSuite(pcgen.core.prereq.AbstractPrerequisiteTestTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreAlignTest.class));
    //suite.addTest(new TestSuite(pcgen.core.prereq.PreArmorProfTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreAttTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreBaseSizeTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreBirthplaceTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreCharactertypeTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreCheckBaseTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreCheckTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreCityTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreClassTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreCSkillTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreDeityAlignTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreDeityDomainTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreDeityTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreDomainTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreDRTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreEquipTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreMultTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreRaceTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreReqHandlerTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreSizeTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreSkillTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreSubClassTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreTemplateTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreTypeTest.class));
    suite.addTest(new TestSuite(pcgen.core.prereq.PreVisionTest.class));
    suite.addTest(FeatTest.suite());
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) CoreUtilityTest(pcgen.core.utils.CoreUtilityTest)

Example 53 with TestSuite

use of junit.framework.TestSuite in project android_frameworks_base by ResurrectionRemix.

the class PowerTestRunner method getAllTests.

@Override
public TestSuite getAllTests() {
    TestSuite suite = new InstrumentationTestSuite(this);
    suite.addTestSuite(PowerMeasurement.class);
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) InstrumentationTestSuite(android.test.InstrumentationTestSuite) InstrumentationTestSuite(android.test.InstrumentationTestSuite)

Example 54 with TestSuite

use of junit.framework.TestSuite in project Main by SpartanRefactoring.

the class MetaTester method runChild.

@Override
@SuppressWarnings("unused")
protected void runChild(final FrameworkMethod __, final RunNotifier n) {
    if (hasRan)
        return;
    final Class<?> newTestClass = new ASTTestClassGenerator(testClass).generate(testClass.getSimpleName() + "_Meta", sourceFile);
    final TestSuite suite = new TestSuite(newTestClass);
    suite.run(new TestResult());
    try {
        new BlockJUnit4ClassRunnerWithParametersFactory().createRunnerForTestWithParameters(new TestWithParameters(" ", new TestClass(newTestClass), an.empty.list())).run(n);
    } catch (final InitializationError ignore) {
    /**/
    }
    // Uncomment this to run the original test as well
    /* super.runChild(method, notifier); */
    hasRan = true;
}
Also used : TestWithParameters(org.junit.runners.parameterized.TestWithParameters) TestSuite(junit.framework.TestSuite) InitializationError(org.junit.runners.model.InitializationError) TestResult(junit.framework.TestResult) BlockJUnit4ClassRunnerWithParametersFactory(org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParametersFactory) TestClass(org.junit.runners.model.TestClass)

Example 55 with TestSuite

use of junit.framework.TestSuite in project android_frameworks_base by ResurrectionRemix.

the class ActivityTests method suite.

public static TestSuite suite() {
    TestSuite suite = new TestSuite(ActivityTests.class.getName());
    suite.addTestSuite(BroadcastTest.class);
    suite.addTestSuite(IntentSenderTest.class);
    suite.addTestSuite(ActivityManagerTest.class);
    suite.addTestSuite(LaunchTest.class);
    suite.addTestSuite(LifecycleTest.class);
    suite.addTestSuite(ServiceTest.class);
    suite.addTestSuite(MetaDataTest.class);
    // Remove temporarily until bug 1171309 is fixed.
    //suite.addTestSuite(SubActivityTest.class);
    suite.addTestSuite(SetTimeZonePermissionsTest.class);
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite)

Aggregations

TestSuite (junit.framework.TestSuite)1380 InstrumentationTestSuite (android.test.InstrumentationTestSuite)100 Test (junit.framework.Test)63 GwtIncompatible (com.google.common.annotations.GwtIncompatible)54 JUnit4TestAdapter (junit.framework.JUnit4TestAdapter)50 TestCase (junit.framework.TestCase)48 Entry (java.util.Map.Entry)36 TestResult (junit.framework.TestResult)33 List (java.util.List)28 Set (java.util.Set)27 TestProjectSetup (org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup)27 ArrayList (java.util.ArrayList)25 ListTestSuiteBuilder (com.google.common.collect.testing.ListTestSuiteBuilder)24 TestStringSetGenerator (com.google.common.collect.testing.TestStringSetGenerator)24 Map (java.util.Map)19 File (java.io.File)16 Method (java.lang.reflect.Method)16 HashSet (java.util.HashSet)13 Helpers.mapEntry (com.google.common.collect.testing.Helpers.mapEntry)12 TestStringMultisetGenerator (com.google.common.collect.testing.google.TestStringMultisetGenerator)12