Package mockit

Class TestedAndMockedTest

java.lang.Object
mockit.TestedAndMockedTest

public final class TestedAndMockedTest extends Object
The Class TestedAndMockedTest.
  • Constructor Details

    • TestedAndMockedTest

      public TestedAndMockedTest()
  • Method Details

    • exercisePublicMethodWhileHavingHelperMethodsMocked

      public void exercisePublicMethodWhileHavingHelperMethodsMocked()
      Exercise public method while having helper methods mocked.
    • exerciseTopLevelTestedObjectTogetherWithInjectedSecondLevelTestedObject

      public void exerciseTopLevelTestedObjectTogetherWithInjectedSecondLevelTestedObject()
      Exercise top level tested object together with injected second level tested object.
    • mockTestedClass

      public void mockTestedClass(TestedAndMockedTest.ClassToBeTested mock)
      Mock tested class.
      Parameters:
      mock - the mock