Package mockit
Class TestedClassWithConstructorDI4Test
java.lang.Object
mockit.TestedClassWithConstructorDI4Test
The Class TestedClassWithConstructorDI4Test.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The Class TestedClass. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Exercise tested object with values injected from mock fields.void
exerciseTestedObjectWithValuesInjectedFromMockParameters
(Callable<Number> action2, Callable<Number> action3) Exercise tested object with values injected from mock parameters.void
Inject nulls through constructor parameters and into required field.void
Record common expectations.void
Use mocked JRE classes during tested object creation.
-
Constructor Details
-
TestedClassWithConstructorDI4Test
public TestedClassWithConstructorDI4Test()
-
-
Method Details
-
recordCommonExpectations
Record common expectations.- Throws:
Exception
- the exception
-
exerciseTestedObjectWithValuesInjectedFromMockFields
public void exerciseTestedObjectWithValuesInjectedFromMockFields()Exercise tested object with values injected from mock fields. -
exerciseTestedObjectWithValuesInjectedFromMockParameters
public void exerciseTestedObjectWithValuesInjectedFromMockParameters(Callable<Number> action2, Callable<Number> action3) Exercise tested object with values injected from mock parameters.- Parameters:
action2
- the action 2action3
- the action 3
-
useMockedJREClassesDuringTestedObjectCreation
Use mocked JRE classes during tested object creation.- Parameters:
fileMock
- the file mock
-
injectNullsThroughConstructorParametersAndIntoRequiredField
public void injectNullsThroughConstructorParametersAndIntoRequiredField()Inject nulls through constructor parameters and into required field.
-