Package mockit
Class FakeInvocationProceedTest
java.lang.Object
mockit.FakeInvocationProceedTest
The Class FakeInvocationProceedTest.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The Class BaseClassToBeFaked.static class
The Class ClassToBeFaked. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Cannot proceed from fake method into native method.void
Proceed conditionally from fake method.void
Proceed conditionally from fake method into constructor.void
Proceed conditionally from fake method into JRE constructor.void
Proceed from fake method into constructor.void
Proceed from fake method into method inherited from base class.void
Proceed from fake method into real method with modified arguments.void
Proceed from fake method which throws checked exception.void
Proceed from fake method without parameters.void
Proceed from fake method with parameters.
-
Constructor Details
-
FakeInvocationProceedTest
public FakeInvocationProceedTest()
-
-
Method Details
-
proceedFromFakeMethodWithoutParameters
@Test public void proceedFromFakeMethodWithoutParameters()Proceed from fake method without parameters. -
proceedFromFakeMethodWithParameters
@Test public void proceedFromFakeMethodWithParameters()Proceed from fake method with parameters. -
proceedConditionallyFromFakeMethod
@Test public void proceedConditionallyFromFakeMethod()Proceed conditionally from fake method. -
proceedFromFakeMethodWhichThrowsCheckedException
Proceed from fake method which throws checked exception.- Throws:
Exception
- the exception
-
proceedFromFakeMethodIntoRealMethodWithModifiedArguments
@Test public void proceedFromFakeMethodIntoRealMethodWithModifiedArguments()Proceed from fake method into real method with modified arguments. -
cannotProceedFromFakeMethodIntoNativeMethod
@Test public void cannotProceedFromFakeMethodIntoNativeMethod()Cannot proceed from fake method into native method. -
proceedFromFakeMethodIntoConstructor
@Test public void proceedFromFakeMethodIntoConstructor()Proceed from fake method into constructor. -
proceedConditionallyFromFakeMethodIntoConstructor
@Test public void proceedConditionallyFromFakeMethodIntoConstructor()Proceed conditionally from fake method into constructor. -
proceedConditionallyFromFakeMethodIntoJREConstructor
@Test public void proceedConditionallyFromFakeMethodIntoJREConstructor()Proceed conditionally from fake method into JRE constructor. -
proceedFromFakeMethodIntoMethodInheritedFromBaseClass
@Test public void proceedFromFakeMethodIntoMethodInheritedFromBaseClass()Proceed from fake method into method inherited from base class.
-