Package mockit
Class TestedClassInjectedFromMockParametersTest
java.lang.Object
mockit.TestedClassInjectedFromMockParametersTest
The Class TestedClassInjectedFromMockParametersTest.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The Class TestedClass. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Attempt to instantiate tested class with no injectables.void
instantiateTestedObjectFromMockParametersUsingAnotherConstructor
(boolean b1, boolean b3, byte b2) Instantiate tested object from mock parameters using another constructor.void
instantiateTestedObjectFromMockParametersUsingOneConstructor
(String s, int mock1, boolean mock2, char c1, char c2) Instantiate tested object from mock parameters using one constructor.void
instantiateTestedObjectUsingConstructorWithMultipleParametersOfTheSameTypeMatchedByName
(char second, char third, char first) Instantiate tested object using constructor with multiple parameters of the same type matched by name.void
setEnumFieldInTestedObjectFromValueProvidedInParameter
(boolean flag, mockit.TestedClassInjectedFromMockParametersTest.AnEnum enumVal) Sets the enum field in tested object from value provided in parameter.
-
Constructor Details
-
TestedClassInjectedFromMockParametersTest
public TestedClassInjectedFromMockParametersTest()
-
-
Method Details
-
attemptToInstantiateTestedClassWithNoInjectables
public void attemptToInstantiateTestedClassWithNoInjectables()Attempt to instantiate tested class with no injectables. -
instantiateTestedObjectFromMockParametersUsingOneConstructor
public void instantiateTestedObjectFromMockParametersUsingOneConstructor(String s, int mock1, boolean mock2, char c1, char c2) Instantiate tested object from mock parameters using one constructor.- Parameters:
s
- the smock1
- the mock 1mock2
- the mock 2c1
- the c 1c2
- the c 2
-
instantiateTestedObjectFromMockParametersUsingAnotherConstructor
public void instantiateTestedObjectFromMockParametersUsingAnotherConstructor(boolean b1, boolean b3, byte b2) Instantiate tested object from mock parameters using another constructor.- Parameters:
b1
- the b 1b3
- the b 3b2
- the b 2
-
instantiateTestedObjectUsingConstructorWithMultipleParametersOfTheSameTypeMatchedByName
public void instantiateTestedObjectUsingConstructorWithMultipleParametersOfTheSameTypeMatchedByName(char second, char third, char first) Instantiate tested object using constructor with multiple parameters of the same type matched by name.- Parameters:
second
- the secondthird
- the thirdfirst
- the first
-
setEnumFieldInTestedObjectFromValueProvidedInParameter
public void setEnumFieldInTestedObjectFromValueProvidedInParameter(boolean flag, mockit.TestedClassInjectedFromMockParametersTest.AnEnum enumVal) Sets the enum field in tested object from value provided in parameter.- Parameters:
flag
- the flagenumVal
- the enum val
-