use of android.test.suitebuilder.examples.OuterTest in project android_frameworks_base by ParanoidAndroid.
the class TestSuiteBuilderTest method testIncludeAllPackagesUnderHere.
/**
* This test calls {@link OuterTest#buildTestsUnderHereRecursively()} to control
* the packages under test. The call to {@link TestSuiteBuilder#includeAllPackagesUnderHere()}
* is made from there so that only return the example tests.
*/
public void testIncludeAllPackagesUnderHere() throws Exception {
TestSuite testSuite = new OuterTest().buildTestsUnderHereRecursively();
assertContentsInOrder(getTestCaseNames(testSuite), "testOuter", "testErrorOne", "testErrorTwo", "testFailOne", "testFailTwo", "testInstrumentation", "testLevel1", "testLevel2", "testAnotherOne", "testSimpleOne", "testSimpleTwo", "testNonSmoke", "testSmoke", "testSubclass", "testSuperclass", "testUnSuppressedMethod");
}
use of android.test.suitebuilder.examples.OuterTest in project android_frameworks_base by ResurrectionRemix.
the class InstrumentationTestSuiteBuilderTest method testShouldOnlyIncludeIntrumentationTests.
public void testShouldOnlyIncludeIntrumentationTests() throws Exception {
TestSuite testSuite = new OuterTest().buildTestsUnderHereWith(instrumentationTestSuiteBuilder);
List<String> testCaseNames = getTestCaseNames(testSuite);
assertEquals(1, testCaseNames.size());
assertEquals("testInstrumentation", testCaseNames.get(0));
}
use of android.test.suitebuilder.examples.OuterTest in project android_frameworks_base by ResurrectionRemix.
the class TestSuiteBuilderTest method testIncludeAllPackagesUnderHere.
/**
* This test calls {@link OuterTest#buildTestsUnderHereRecursively()} to control
* the packages under test. The call to {@link TestSuiteBuilder#includeAllPackagesUnderHere()}
* is made from there so that only return the example tests.
*/
public void testIncludeAllPackagesUnderHere() throws Exception {
TestSuite testSuite = new OuterTest().buildTestsUnderHereRecursively();
assertContentsInOrder(getTestCaseNames(testSuite), "testOuter", "testErrorOne", "testErrorTwo", "testFailOne", "testFailTwo", "testInstrumentation", "testLevel1", "testLevel2", "testAnotherOne", "testSimpleOne", "testSimpleTwo", "testNonSmoke", "testSmoke", "testSubclass", "testSuperclass", "testUnSuppressedMethod");
}
use of android.test.suitebuilder.examples.OuterTest in project android_frameworks_base by DirtyUnicorns.
the class InstrumentationTestSuiteBuilderTest method testShouldOnlyIncludeIntrumentationTests.
public void testShouldOnlyIncludeIntrumentationTests() throws Exception {
TestSuite testSuite = new OuterTest().buildTestsUnderHereWith(instrumentationTestSuiteBuilder);
List<String> testCaseNames = getTestCaseNames(testSuite);
assertEquals(1, testCaseNames.size());
assertEquals("testInstrumentation", testCaseNames.get(0));
}
use of android.test.suitebuilder.examples.OuterTest in project android_frameworks_base by crdroidandroid.
the class TestSuiteBuilderTest method testIncludeAllPackagesUnderHere.
/**
* This test calls {@link OuterTest#buildTestsUnderHereRecursively()} to control
* the packages under test. The call to {@link TestSuiteBuilder#includeAllPackagesUnderHere()}
* is made from there so that only return the example tests.
*/
public void testIncludeAllPackagesUnderHere() throws Exception {
TestSuite testSuite = new OuterTest().buildTestsUnderHereRecursively();
assertContentsInOrder(getTestCaseNames(testSuite), "testOuter", "testErrorOne", "testErrorTwo", "testFailOne", "testFailTwo", "testInstrumentation", "testLevel1", "testLevel2", "testAnotherOne", "testSimpleOne", "testSimpleTwo", "testNonSmoke", "testSmoke", "testSubclass", "testSuperclass", "testUnSuppressedMethod");
}