1 package junitparams; 2 3 import static org.junit.Assert.assertEquals; 4 5 import org.junit.Test; 6 import org.junit.runner.JUnitCore; 7 import org.junit.runner.Result; 8 9 import junitparams.usage.SamplesOfUsageTest; 10 11 public class SamplesOfUsageVerificationTest { 12 13 @Test verifyNoTestsIgnoredInSamplesOfUsageTest()14 public void verifyNoTestsIgnoredInSamplesOfUsageTest() { 15 Result result = JUnitCore.runClasses(SamplesOfUsageTest.class); 16 17 assertEquals(0, result.getFailureCount()); 18 // Android-changed: 5 tests are ignored, see the @Ignore annotated methods in 19 // SamplesOfUsageTest for more details. 20 assertEquals(5, result.getIgnoreCount()); 21 } 22 23 } 24