Class TestMethod


  • @Deprecated
    public class TestMethod
    extends java.lang.Object
    Deprecated.
    Included for backwards compatibility with JUnit 4.4. Will be removed in the next major release. Please use BlockJUnit4ClassRunner in place of JUnit4ClassRunner.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Method method
      Deprecated.
       
      private TestClass testClass
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      TestMethod​(java.lang.reflect.Method method, TestClass testClass)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      (package private) boolean expectsException()
      Deprecated.
       
      (package private) java.util.List<java.lang.reflect.Method> getAfters()
      Deprecated.
       
      (package private) java.util.List<java.lang.reflect.Method> getBefores()
      Deprecated.
       
      protected java.lang.Class<? extends java.lang.Throwable> getExpectedException()
      Deprecated.
       
      long getTimeout()
      Deprecated.
       
      void invoke​(java.lang.Object test)
      Deprecated.
       
      boolean isIgnored()
      Deprecated.
       
      (package private) boolean isUnexpected​(java.lang.Throwable exception)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • method

        private final java.lang.reflect.Method method
        Deprecated.
      • testClass

        private TestClass testClass
        Deprecated.
    • Constructor Detail

      • TestMethod

        public TestMethod​(java.lang.reflect.Method method,
                          TestClass testClass)
        Deprecated.
    • Method Detail

      • isIgnored

        public boolean isIgnored()
        Deprecated.
      • getTimeout

        public long getTimeout()
        Deprecated.
      • getExpectedException

        protected java.lang.Class<? extends java.lang.Throwable> getExpectedException()
        Deprecated.
      • isUnexpected

        boolean isUnexpected​(java.lang.Throwable exception)
        Deprecated.
      • expectsException

        boolean expectsException()
        Deprecated.
      • getBefores

        java.util.List<java.lang.reflect.Method> getBefores()
        Deprecated.
      • getAfters

        java.util.List<java.lang.reflect.Method> getAfters()
        Deprecated.
      • invoke

        public void invoke​(java.lang.Object test)
                    throws java.lang.IllegalArgumentException,
                           java.lang.IllegalAccessException,
                           java.lang.reflect.InvocationTargetException
        Deprecated.
        Throws:
        java.lang.IllegalArgumentException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException