Package mockit

Class ExpectationsWithVarArgsMatchersTest

java.lang.Object
mockit.ExpectationsWithVarArgsMatchersTest

public final class ExpectationsWithVarArgsMatchersTest extends Object
The Class ExpectationsWithVarArgsMatchersTest.
  • Field Details

    • thrown

      public final org.junit.rules.ExpectedException thrown
      The 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.