use of junit.framework.TestSuite in project android_frameworks_base by AOSPA.
the class NewDatabasePerformanceTestSuite method suite.
public static TestSuite suite() {
TestSuite suite = new TestSuite(NewDatabasePerformanceTestSuite.class.getName());
suite.addTestSuite(NewDatabasePerformanceTests.Insert1000.class);
suite.addTestSuite(NewDatabasePerformanceTests.InsertIndexed1000.class);
suite.addTestSuite(NewDatabasePerformanceTests.Select100.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectStringComparison100.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectIndex100.class);
suite.addTestSuite(NewDatabasePerformanceTests.InnerJoin100.class);
suite.addTestSuite(NewDatabasePerformanceTests.InnerJoinOneSide100.class);
suite.addTestSuite(NewDatabasePerformanceTests.InnerJoinNoIndex100.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectSubQIndex100.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectIndexStringComparison100.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectInteger100.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectString100.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectIntegerIndex100.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectIndexString100.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectStringStartsWith100.class);
suite.addTestSuite(NewDatabasePerformanceTests.DeleteIndexed1000.class);
suite.addTestSuite(NewDatabasePerformanceTests.Delete1000.class);
suite.addTestSuite(NewDatabasePerformanceTests.DeleteWhere1000.class);
suite.addTestSuite(NewDatabasePerformanceTests.DeleteIndexWhere1000.class);
suite.addTestSuite(NewDatabasePerformanceTests.UpdateIndexWhere1000.class);
suite.addTestSuite(NewDatabasePerformanceTests.UpdateWhere1000.class);
suite.addTestSuite(NewDatabasePerformanceTests.InsertInteger10000.class);
suite.addTestSuite(NewDatabasePerformanceTests.InsertIntegerIndex10000.class);
suite.addTestSuite(NewDatabasePerformanceTests.InsertString10000.class);
suite.addTestSuite(NewDatabasePerformanceTests.InsertStringIndexed10000.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectStringStartsWith10000.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectStringIndexedStartsWith10000.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectInteger10000.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectIntegerIndexed10000.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectStringContains10000.class);
suite.addTestSuite(NewDatabasePerformanceTests.SelectStringIndexedContains10000.class);
return suite;
}
use of junit.framework.TestSuite in project intellij-community by JetBrains.
the class BootstrapTests method suite.
public static Test suite() throws Throwable {
ClassLoader cl = Thread.currentThread().getContextClassLoader();
String[] classes = System.getProperty("bootstrap.testcases").split(",");
TestSuite suite = new TestSuite();
for (String s : classes) {
final Class<?> aClass = Class.forName(s, true, cl);
if (TestCase.class.isAssignableFrom(aClass)) {
@SuppressWarnings("unchecked") final Class<? extends TestCase> testClass = (Class<? extends TestCase>) aClass;
suite.addTestSuite(testClass);
} else {
suite.addTest((Test) aClass.getMethod("suite").invoke(null));
}
}
return suite;
}
use of junit.framework.TestSuite in project intellij-community by JetBrains.
the class UsefulTestCase method filteredSuite.
@NotNull
public static Test filteredSuite(@RegExp String regexp, @NotNull Test test) {
final Pattern pattern = Pattern.compile(regexp);
final TestSuite testSuite = new TestSuite();
new Processor<Test>() {
@Override
public boolean process(Test test) {
if (test instanceof TestSuite) {
for (int i = 0, len = ((TestSuite) test).testCount(); i < len; i++) {
process(((TestSuite) test).testAt(i));
}
} else if (pattern.matcher(test.toString()).find()) {
testSuite.addTest(test);
}
return false;
}
}.process(test);
return testSuite;
}
use of junit.framework.TestSuite in project intellij-community by JetBrains.
the class AllTypeMigrationTests method suite.
@SuppressWarnings({ "UnusedDeclaration" })
public static Test suite() {
final TestSuite suite = new TestSuite();
suite.addTestSuite(TypeMigrationTest.class);
suite.addTestSuite(TypeMigrationByAtomicRuleTest.class);
suite.addTestSuite(TypeMigrationByThreadLocalRuleTest.class);
suite.addTestSuite(TypeMigrationByLongAdderTest.class);
suite.addTestSuite(MigrateTypeSignatureTest.class);
suite.addTestSuite(ChangeTypeSignatureTest.class);
suite.addTestSuite(WildcardTypeMigrationTest.class);
suite.addTestSuite(ConvertToAtomicIntentionTest.class);
suite.addTestSuite(ConvertToThreadLocalIntentionTest.class);
suite.addTestSuite(GuavaInspectionTest.class);
return suite;
}
use of junit.framework.TestSuite in project intellij-community by JetBrains.
the class IntroduceVariableSuite method suite.
public static Test suite() {
final TestSuite suite = new TestSuite();
suite.addTestSuite(IntroduceVariableTest.class);
suite.addTestSuite(IntroduceVariableMultifileTest.class);
return suite;
}
Aggregations