Package mockit

Class MockAnnotationsTest

java.lang.Object
mockit.MockAnnotationsTest

public final class MockAnnotationsTest extends Object
  • Constructor Details

    • MockAnnotationsTest

      public MockAnnotationsTest()
  • Method Details

    • mockWithNoExpectationsPassingMockInstance

      @Test public void mockWithNoExpectationsPassingMockInstance()
    • attemptToSetUpMockForClassLackingAMatchingRealMethod

      @Disabled("Mocked method must be checked if it exists in the calling class.") @Test public void attemptToSetUpMockForClassLackingAMatchingRealMethod()
    • mockMethodOfSubInterfaceWithGenericTypeArgument

      @Test public void mockMethodOfSubInterfaceWithGenericTypeArgument()
    • mockMethodOfGenericInterfaceWithArrayAndGenericTypeArgument

      @Test public void mockMethodOfGenericInterfaceWithArrayAndGenericTypeArgument()
    • setUpMocksFromInnerMockClassWithMockConstructor

      @Test public void setUpMocksFromInnerMockClassWithMockConstructor()
    • setUpMocksContainingExpectations

      @Test public void setUpMocksContainingExpectations()
    • setUpMockWithMinInvocationsExpectationButFailIt

      @Disabled("Determination of the number of method calls is not yet implemented.") @Test public void setUpMockWithMinInvocationsExpectationButFailIt()
    • setUpMockWithMaxInvocationsExpectationButFailIt

      @Disabled("Determination of the number of method calls is not yet implemented.") @Test public void setUpMockWithMaxInvocationsExpectationButFailIt()
    • setUpMockWithInvocationsExpectationButFailIt

      @Disabled("Determination of the number of method calls is not yet implemented.") @Test public void setUpMockWithInvocationsExpectationButFailIt()
    • setUpReentrantMock

      @Test public void setUpReentrantMock()
    • setUpMockForConstructor

      @Test public void setUpMockForConstructor()
    • setUpMockForStaticMethod

      @Test public void setUpMockForStaticMethod()
    • setUpMockForSubclassConstructor

      @Test public void setUpMockForSubclassConstructor()
    • setUpMocksForClassHierarchy

      @Test public void setUpMocksForClassHierarchy()
    • mockNativeMethodInClassWithRegisterNatives

      @Test public void mockNativeMethodInClassWithRegisterNatives()
    • mockNativeMethodInClassWithoutRegisterNatives

      @Test public void mockNativeMethodInClassWithoutRegisterNatives() throws Exception
      Throws:
      Exception
    • setUpMockForJREClass

      @Test public void setUpMockForJREClass()
    • mockStaticInitializer

      @Test public void mockStaticInitializer()
    • stubOutStaticInitializer

      @Test public void stubOutStaticInitializer() throws Exception
      Throws:
      Exception
    • stubOutStaticInitializerWithEmptyMockClass

      @Test public void stubOutStaticInitializerWithEmptyMockClass() throws Exception
      Throws:
      Exception
    • mockJREInterface

      @Test public void mockJREInterface() throws Exception
      Throws:
      Exception
    • mockJREInterfaceWithMockUp

      @Test public void mockJREInterfaceWithMockUp() throws Exception
      Throws:
      Exception
    • mockPublicInterfaceWithMockUpHavingInvocationParameter

      @Test public void mockPublicInterfaceWithMockUpHavingInvocationParameter()
    • mockAbstractClassWithMockForAbstractMethodHavingInvocationParameter

      @Test public <A extends mockit.MockAnnotationsTest.AnAbstractClass> void mockAbstractClassWithMockForAbstractMethodHavingInvocationParameter()
    • attemptToProceedIntoInterfaceImplementation

      @Test public void attemptToProceedIntoInterfaceImplementation()
    • mockNonPublicInterfaceWithMockUpHavingInvocationParameter

      @Test public void mockNonPublicInterfaceWithMockUpHavingInvocationParameter()
    • mockGenericInterfaceWithMockUpHavingInvocationParameter

      @Test public void mockGenericInterfaceWithMockUpHavingInvocationParameter() throws Exception
      Throws:
      Exception
    • mockGenericClassWithMockUpHavingInvocationParameter

      @Test public void mockGenericClassWithMockUpHavingInvocationParameter()
    • stubbedOutAnnotatedMethodInMockedClass

      @Test public void stubbedOutAnnotatedMethodInMockedClass() throws Exception
      Throws:
      Exception
    • concurrentMock

      @Test public void concurrentMock() throws Exception
      Throws:
      Exception
    • mockUpAffectsInstancesOfSpecifiedSubclassAndNotOfBaseClass

      @Test public void mockUpAffectsInstancesOfSpecifiedSubclassAndNotOfBaseClass()