Package mockit
Class TestedAndMockedTest
java.lang.Object
mockit.TestedAndMockedTest
The Class TestedAndMockedTest.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The Class ClassToBeTested. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Exercise public method while having helper methods mocked.void
Exercise top level tested object together with injected second level tested object.void
Mock tested class.
-
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
Mock tested class.- Parameters:
mock
- the mock
-