Home | History | Annotate | Download | only in runners
      1 /*
      2  * Copyright (c) 2007 Mockito contributors
      3  * This program is made available under the terms of the MIT License.
      4  */
      5 package org.mockito.runners;
      6 
      7 import java.lang.reflect.InvocationTargetException;
      8 import org.junit.runner.Description;
      9 import org.junit.runner.manipulation.Filter;
     10 import org.junit.runner.manipulation.NoTestsRemainException;
     11 import org.junit.runner.notification.RunNotifier;
     12 
     13 
     14 /**
     15  * Runner moved to a new place see {@link org.mockito.junit.MockitoJUnitRunner}
     16  *
     17  * @deprecated Moved to {@link org.mockito.junit.MockitoJUnitRunner}, this class will be removed with Mockito 3
     18  */
     19 @Deprecated
     20 public class MockitoJUnitRunner extends org.mockito.junit.MockitoJUnitRunner {
     21 
     22     /**
     23      * Silent runner moved to a new place see {@link org.mockito.junit.MockitoJUnitRunner.Silent}
     24      *
     25      * @deprecated Moved to {@link org.mockito.junit.MockitoJUnitRunner.Silent}, this class will be removed with Mockito 3
     26      */
     27     @Deprecated
     28     public static class Silent extends MockitoJUnitRunner {
     29         public Silent(Class<?> klass) throws InvocationTargetException {
     30             super(klass);
     31         }
     32     }
     33 
     34     /**
     35      * Silent runner moved to a new place see {@link org.mockito.junit.MockitoJUnitRunner.Strict}
     36      *
     37      * @deprecated Moved to {@link org.mockito.junit.MockitoJUnitRunner.Strict}, this class will be removed with Mockito 3
     38      */
     39     @Deprecated
     40     public static class Strict extends MockitoJUnitRunner {
     41         public Strict(Class<?> klass) throws InvocationTargetException {
     42             super(klass);
     43         }
     44     }
     45 
     46     public MockitoJUnitRunner(Class<?> klass) throws InvocationTargetException {
     47         super(klass);
     48     }
     49 
     50     @Deprecated
     51     @Override
     52     public void run(final RunNotifier notifier) {
     53         super.run(notifier);
     54     }
     55 
     56     @Deprecated
     57     @Override
     58     public Description getDescription() {
     59         return super.getDescription();
     60     }
     61 
     62     @Deprecated
     63     public void filter(Filter filter) throws NoTestsRemainException {
     64         super.filter(filter);
     65     }
     66 }
     67