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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations