FileDocCategorySizeDatePackage
TestGroupingTest.javaAPI DocAndroid 5.1 API1574Thu Mar 12 22:22:42 GMT 2015android.test.suitebuilder

TestGroupingTest

public class TestGroupingTest extends TestCase
Unit tests for {@link TestGrouping}

Fields Summary
private TestGrouping
mGrouping
Constructors Summary
Methods Summary
protected voidsetUp()

        super.setUp();
        mGrouping = new TestGrouping(TestGrouping.SORT_BY_SIMPLE_NAME);
    
public voidtestGetTests_noPublicConstructor()
Verifies that TestCases with no public constructor are not loaded. Relies on fixture classes in android.test.suitebuilder.examples.constructor

        mGrouping.addPackagesRecursive("android.test.suitebuilder.examples.constructor");
        List<TestMethod> tests = mGrouping.getTests();
        // only the PublicConstructorTest's test method should be present
        assertEquals(1, tests.size());
        assertEquals("testPublicConstructor", tests.get(0).getName());