Package mockit
Class ExpectationsWithVarArgsMatchersTest
java.lang.Object
mockit.ExpectationsWithVarArgsMatchersTest
The Class ExpectationsWithVarArgsMatchersTest.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The Interface Dependency. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Expectation recorded with not null matcher for varargs parameter.void
Expect invocation on method with varargs argument using argument matchers.void
Expect invocation on varargs method with matcher only for regular first parameter.void
Expect invocations with matcher for varargs parameter only.void
Expect invocations with non null regular argument and any varargs.void
Expect invocation with any number of variable arguments.void
Expect invocation with matchers for all parameters and varargs values but replay with different vararg value.void
Expect invocation with matchers for regular parameters and all varargs values.void
Expect invocation with matchers for some regular parameters and all for varargs.void
Expect invocation with non null regular argument and any varargs but replay with null.void
expectInvocationWithNonPrimitiveVarArgs
(mockit.ExpectationsWithVarArgsMatchersTest.ReferenceVarArgs varargs) Expect invocation with non primitive var args.void
Expect invocation with no var args.void
expectInvocationWithPrimitiveVarArgs
(mockit.ExpectationsWithVarArgsMatchersTest.PrimitiveVarArgs varargs) Expect invocation with primitive var args.void
expectInvocationWithPrimitiveVarArgsUsingMatchers
(mockit.ExpectationsWithVarArgsMatchersTest.MixedVarArgs varargs) Expect invocation with primitive var args using matchers.void
Record expectations with matchers for some regular parameters and none for varargs.void
Record varargs method with regular parameter using matcher for varargs only.void
Replay varargs method with different than expected non varargs argument.void
Replay varargs method with different than expected number of varargs arguments.void
Replay varargs method with different than expected varargs argument.
-
Field Details
-
thrown
public final org.junit.rules.ExpectedException thrownThe thrown.
-
-
Constructor Details
-
ExpectationsWithVarArgsMatchersTest
public ExpectationsWithVarArgsMatchersTest()
-
-
Method Details
-
replayVarargsMethodWithDifferentThanExpectedNonVarargsArgument
public void replayVarargsMethodWithDifferentThanExpectedNonVarargsArgument()Replay varargs method with different than expected non varargs argument. -
replayVarargsMethodWithDifferentThanExpectedNumberOfVarargsArguments
public void replayVarargsMethodWithDifferentThanExpectedNumberOfVarargsArguments()Replay varargs method with different than expected number of varargs arguments. -
replayVarargsMethodWithDifferentThanExpectedVarargsArgument
public void replayVarargsMethodWithDifferentThanExpectedVarargsArgument()Replay varargs method with different than expected varargs argument. -
expectInvocationOnMethodWithVarargsArgumentUsingArgumentMatchers
public void expectInvocationOnMethodWithVarargsArgumentUsingArgumentMatchers()Expect invocation on method with varargs argument using argument matchers. -
expectInvocationWithAnyNumberOfVariableArguments
public void expectInvocationWithAnyNumberOfVariableArguments()Expect invocation with any number of variable arguments. -
expectInvocationsWithMatcherForVarargsParameterOnly
public void expectInvocationsWithMatcherForVarargsParameterOnly()Expect invocations with matcher for varargs parameter only. -
expectInvocationOnVarargsMethodWithMatcherOnlyForRegularFirstParameter
public void expectInvocationOnVarargsMethodWithMatcherOnlyForRegularFirstParameter()Expect invocation on varargs method with matcher only for regular first parameter. -
expectInvocationWithMatchersForRegularParametersAndAllVarargsValues
public void expectInvocationWithMatchersForRegularParametersAndAllVarargsValues()Expect invocation with matchers for regular parameters and all varargs values. -
recordExpectationsWithMatchersForSomeRegularParametersAndNoneForVarargs
public void recordExpectationsWithMatchersForSomeRegularParametersAndNoneForVarargs()Record expectations with matchers for some regular parameters and none for varargs. -
expectInvocationsWithNonNullRegularArgumentAndAnyVarargs
public void expectInvocationsWithNonNullRegularArgumentAndAnyVarargs()Expect invocations with non null regular argument and any varargs. -
expectInvocationWithNonNullRegularArgumentAndAnyVarargsButReplayWithNull
public void expectInvocationWithNonNullRegularArgumentAndAnyVarargsButReplayWithNull()Expect invocation with non null regular argument and any varargs but replay with null. -
expectInvocationWithMatchersForSomeRegularParametersAndAllForVarargs
public void expectInvocationWithMatchersForSomeRegularParametersAndAllForVarargs()Expect invocation with matchers for some regular parameters and all for varargs. -
expectInvocationWithNoVarArgs
public void expectInvocationWithNoVarArgs(mockit.ExpectationsWithVarArgsMatchersTest.VarArgs varargs) Expect invocation with no var args.- Parameters:
varargs
- the varargs
-
expectInvocationWithNonPrimitiveVarArgs
public void expectInvocationWithNonPrimitiveVarArgs(mockit.ExpectationsWithVarArgsMatchersTest.ReferenceVarArgs varargs) Expect invocation with non primitive var args.- Parameters:
varargs
- the varargs
-
expectInvocationWithPrimitiveVarArgs
public void expectInvocationWithPrimitiveVarArgs(mockit.ExpectationsWithVarArgsMatchersTest.PrimitiveVarArgs varargs) Expect invocation with primitive var args.- Parameters:
varargs
- the varargs
-
expectInvocationWithPrimitiveVarArgsUsingMatchers
public void expectInvocationWithPrimitiveVarArgsUsingMatchers(mockit.ExpectationsWithVarArgsMatchersTest.MixedVarArgs varargs) Expect invocation with primitive var args using matchers.- Parameters:
varargs
- the varargs
-
expectInvocationWithMatchersForAllParametersAndVarargsValuesButReplayWithDifferentVarargValue
public void expectInvocationWithMatchersForAllParametersAndVarargsValuesButReplayWithDifferentVarargValue()Expect invocation with matchers for all parameters and varargs values but replay with different vararg value. -
expectationRecordedWithNotNullMatcherForVarargsParameter
public void expectationRecordedWithNotNullMatcherForVarargsParameter()Expectation recorded with not null matcher for varargs parameter. -
recordVarargsMethodWithRegularParameterUsingMatcherForVarargsOnly
public void recordVarargsMethodWithRegularParameterUsingMatcherForVarargsOnly()Record varargs method with regular parameter using matcher for varargs only.
-