Search in sources :

Example 6 with OuterTest

use of android.test.suitebuilder.examples.OuterTest in project platform_frameworks_base by android.

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));
}
Also used : TestSuite(junit.framework.TestSuite) OuterTest(android.test.suitebuilder.examples.OuterTest)

Example 7 with OuterTest

use of android.test.suitebuilder.examples.OuterTest in project platform_frameworks_base by android.

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");
}
Also used : TestSuite(junit.framework.TestSuite) OuterTest(android.test.suitebuilder.examples.OuterTest)

Example 8 with OuterTest

use of android.test.suitebuilder.examples.OuterTest in project android_frameworks_base by ParanoidAndroid.

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));
}
Also used : TestSuite(junit.framework.TestSuite) OuterTest(android.test.suitebuilder.examples.OuterTest)

Example 9 with OuterTest

use of android.test.suitebuilder.examples.OuterTest in project android_frameworks_base by DirtyUnicorns.

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");
}
Also used : TestSuite(junit.framework.TestSuite) OuterTest(android.test.suitebuilder.examples.OuterTest)

Example 10 with OuterTest

use of android.test.suitebuilder.examples.OuterTest in project android_frameworks_base by crdroidandroid.

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));
}
Also used : TestSuite(junit.framework.TestSuite) OuterTest(android.test.suitebuilder.examples.OuterTest)

Aggregations

OuterTest (android.test.suitebuilder.examples.OuterTest)10 TestSuite (junit.framework.TestSuite)10