Class JMock

  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

    @Deprecated
    public class JMock
    extends org.junit.runners.BlockJUnit4ClassRunner
    Deprecated.
    For JUnit 4 use JUnitRuleMockery
    A test Runner that asserts that all expectations have been met after the test has finished and before the fixture is torn down.
    Author:
    nat steve.freeman
    • Constructor Summary

      Constructors 
      Constructor Description
      JMock​(Class<?> testClass)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void assertMockeryIsSatisfied​(Object test)
      Deprecated.
       
      protected Object createTest()
      Deprecated.
       
      protected Mockery mockeryOf​(Object test)
      Deprecated.
       
      protected org.junit.runners.model.Statement possiblyExpectingExceptions​(org.junit.runners.model.FrameworkMethod method, Object test, org.junit.runners.model.Statement next)
      Deprecated.
      protected org.junit.runners.model.Statement verify​(org.junit.runners.model.FrameworkMethod method, Object test, org.junit.runners.model.Statement next)
      Deprecated.
       
      • Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

        collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
      • Methods inherited from class org.junit.runners.ParentRunner

        childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
      • Methods inherited from class org.junit.runner.Runner

        testCount
    • Constructor Detail

      • JMock

        public JMock​(Class<?> testClass)
              throws org.junit.runners.model.InitializationError
        Deprecated.
        Throws:
        org.junit.runners.model.InitializationError
    • Method Detail

      • createTest

        protected Object createTest()
                             throws Exception
        Deprecated.
        Overrides:
        createTest in class org.junit.runners.BlockJUnit4ClassRunner
        Throws:
        Exception
      • possiblyExpectingExceptions

        @Deprecated
        protected org.junit.runners.model.Statement possiblyExpectingExceptions​(org.junit.runners.model.FrameworkMethod method,
                                                                                Object test,
                                                                                org.junit.runners.model.Statement next)
        Deprecated.
        Overrides:
        possiblyExpectingExceptions in class org.junit.runners.BlockJUnit4ClassRunner
      • verify

        protected org.junit.runners.model.Statement verify​(org.junit.runners.model.FrameworkMethod method,
                                                           Object test,
                                                           org.junit.runners.model.Statement next)
        Deprecated.
      • assertMockeryIsSatisfied

        protected void assertMockeryIsSatisfied​(Object test)
        Deprecated.
      • mockeryOf

        protected Mockery mockeryOf​(Object test)
        Deprecated.