aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/junitparams/SamplesOfUsageVerificationTest.java
blob: a485d4e794ce28222814001b5d0403cbf7ee73f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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());
        // TODO(JUnit4.10) - 2 tests are ignored because they do not work when run on the device.
        assertEquals(2, result.getIgnoreCount());
    }

}