aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/junitparams/SamplesOfUsageVerificationTest.java
blob: 459a0cdcff5bec0de9ee94393843e5ff0cc37cef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package junitparams;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;

import junitparams.usage.SamplesOfUsageTest;

public class SamplesOfUsageVerificationTest {

    @Test
    public void verifyNoTestsIgnoredInSamplesOfUsageTest() {
        Result result = JUnitCore.runClasses(SamplesOfUsageTest.class);

        assertEquals(0, result.getFailureCount());
        // Android-changed: 5 tests are ignored, see the @Ignore annotated methods in
        // SamplesOfUsageTest for more details.
        assertEquals(5, result.getIgnoreCount());
    }

}