Search in sources :

Example 31 with TestSuite

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

the class CameraStressTestRunner method getAllTests.

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

Example 32 with TestSuite

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

the class MediaFrameworkPerfTestRunner method getAllTests.

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

Example 33 with TestSuite

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

the class MediaFrameworkPowerTestRunner method getAllTests.

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

Example 34 with TestSuite

use of junit.framework.TestSuite in project tdi-studio-se by Talend.

the class AllTests method suite.

public static Test suite() {
    //$NON-NLS-1$
    TestSuite suite = new TestSuite("Test for org.talend.designer.runprocess.shadow");
    // $JUnit-BEGIN$
    suite.addTestSuite(ShadowProcessTest.class);
    // $JUnit-END$
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite)

Example 35 with TestSuite

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

the class TestSuiteBuilder method build.

/**
     * Call this method once you've configured your builder as desired.
     *
     * @return The suite containing the requested tests.
     */
public final TestSuite build() {
    rootSuite = new TestSuite(getSuiteName());
    // Keep track of current class so we know when to create a new sub-suite.
    currentClassname = null;
    try {
        for (TestMethod test : testGrouping.getTests()) {
            if (satisfiesAllPredicates(test)) {
                addTest(test);
            }
        }
        if (testCases.size() > 0) {
            for (TestCase testCase : testCases) {
                if (satisfiesAllPredicates(new TestMethod(testCase))) {
                    addTest(testCase);
                }
            }
        }
    } catch (Exception exception) {
        Log.i("TestSuiteBuilder", "Failed to create test.", exception);
        TestSuite suite = new TestSuite(getSuiteName());
        suite.addTest(new FailedToCreateTests(exception));
        return suite;
    }
    return rootSuite;
}
Also used : TestSuite(junit.framework.TestSuite) TestCase(junit.framework.TestCase)

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