Package org.junit.runners

Examples of org.junit.runners.BlockJUnit4ClassRunner.testCount()


    public void categoryFilterLeavesOnlyMatchingMethods()
            throws InitializationError, NoTestsRemainException {
        CategoryFilter filter = CategoryFilter.include(SlowTests.class);
        BlockJUnit4ClassRunner runner = new BlockJUnit4ClassRunner(A.class);
        filter.apply(runner);
        assertEquals(1, runner.testCount());
    }

    public static class OneFastOneSlow {
        @Category(FastTests.class)
        @Test
View Full Code Here


            throws InitializationError, NoTestsRemainException {
        CategoryFilter filter = CategoryFilter.include(SlowTests.class);
        BlockJUnit4ClassRunner runner = new BlockJUnit4ClassRunner(
                OneFastOneSlow.class);
        filter.apply(runner);
        assertEquals(1, runner.testCount());
    }

    public static class OneFast {
        @Category(FastTests.class)
        @Test
View Full Code Here

  public void categoryFilterLeavesOnlyMatchingMethods()
      throws InitializationError, NoTestsRemainException {
    CategoryFilter filter= CategoryFilter.include(SlowTests.class);
    BlockJUnit4ClassRunner runner= new BlockJUnit4ClassRunner(A.class);
    filter.apply(runner);
    assertEquals(1, runner.testCount());
  }

  public static class OneFastOneSlow {
    @Category(FastTests.class)
    @Test
View Full Code Here

      throws InitializationError, NoTestsRemainException {
    CategoryFilter filter= CategoryFilter.include(SlowTests.class);
    BlockJUnit4ClassRunner runner= new BlockJUnit4ClassRunner(
        OneFastOneSlow.class);
    filter.apply(runner);
    assertEquals(1, runner.testCount());
  }

  public static class OneFast {
    @Category(FastTests.class)
    @Test
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.