Search in sources :

Example 1 with OuterTest

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

Example 2 with OuterTest

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

Example 3 with OuterTest

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

Example 4 with OuterTest

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

Example 5 with OuterTest

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");
}
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