|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MockControl | Line # 18 | 55 | 45 | 100% |
1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (288) | |||
| Result | |||
|
0.21568628
|
org.easymock.tests.UsageStrictMockTest.differentMethods
org.easymock.tests.UsageStrictMockTest.differentMethods
|
1 PASS | |
|
0.19607843
|
org.easymock.tests.UsageOverloadedMethodTest.moreThanOneResultAndOpenCallCount
org.easymock.tests.UsageOverloadedMethodTest.moreThanOneResultAndOpenCallCount
|
1 PASS | |
|
0.19607843
|
org.easymock.tests.UsageStrictMockTest.range
org.easymock.tests.UsageStrictMockTest.range
|
1 PASS | |
|
0.1764706
|
org.easymock.tests.UsageVerifyTest.atLeastTwoReturns
org.easymock.tests.UsageVerifyTest.atLeastTwoReturns
|
1 PASS | |
|
0.1764706
|
org.easymock.tests.UsageRangeTest.zeroOrMoreNoCalls
org.easymock.tests.UsageRangeTest.zeroOrMoreNoCalls
|
1 PASS | |
|
0.1764706
|
org.easymock.tests.UsageRangeTest.combination
org.easymock.tests.UsageRangeTest.combination
|
1 PASS | |
|
0.1764706
|
org.easymock.tests.UsageRangeTest.zeroOrMoreThreeCalls
org.easymock.tests.UsageRangeTest.zeroOrMoreThreeCalls
|
1 PASS | |
|
0.1764706
|
org.easymock.tests.UsageRangeTest.zeroOrMoreOneCall
org.easymock.tests.UsageRangeTest.zeroOrMoreOneCall
|
1 PASS | |
|
0.15686275
|
org.easymock.tests.UsageUnorderedTest.message
org.easymock.tests.UsageUnorderedTest.message
|
1 PASS | |
|
0.15686275
|
org.easymock.tests.UsageCallCountTest.noUpperLimitWithoutCallCountSet
org.easymock.tests.UsageCallCountTest.noUpperLimitWithoutCallCountSet
|
1 PASS | |
|
0.15686275
|
org.easymock.tests.UsageTest.openCallCountByLastThrowable
org.easymock.tests.UsageTest.openCallCountByLastThrowable
|
1 PASS | |
|
0.15686275
|
org.easymock.tests.UsageTest.openCallCountByLastCall
org.easymock.tests.UsageTest.openCallCountByLastCall
|
1 PASS | |
|
0.15686275
|
org.easymock.tests.UsageThrowableTest.noUpperLimit
org.easymock.tests.UsageThrowableTest.noUpperLimit
|
1 PASS | |
|
0.13725491
|
org.easymock.tests.UsageRangeTest.withIllegalOwnRange
org.easymock.tests.UsageRangeTest.withIllegalOwnRange
|
1 PASS | |
|
0.13725491
|
org.easymock.tests.RecordStateInvalidThrowableTest.throwAfterThrowable
org.easymock.tests.RecordStateInvalidThrowableTest.throwAfterThrowable
|
1 PASS | |
|
0.12745099
|
org.easymock.tests.UsageStrictMockTest.defaultBehavior
org.easymock.tests.UsageStrictMockTest.defaultBehavior
|
1 PASS | |
|
0.11764706
|
org.easymock.tests.RecordStateInvalidRangeTest.setOpenCallCountTwice
org.easymock.tests.RecordStateInvalidRangeTest.setOpenCallCountTwice
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndReturnTest.longAndRange
org.easymock.tests.UsageExpectAndReturnTest.longAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndReturnTest.floatAndRange
org.easymock.tests.UsageExpectAndReturnTest.floatAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.DefaultMatcherTest.defaultMatcherSetTooLate
org.easymock.tests.DefaultMatcherTest.defaultMatcherSetTooLate
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndReturnTest.doubleAndRange
org.easymock.tests.UsageExpectAndReturnTest.doubleAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndThrowTest.longAndRange
org.easymock.tests.UsageExpectAndThrowTest.longAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageThrowableTest.throwAfterReturnValue
org.easymock.tests.UsageThrowableTest.throwAfterReturnValue
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndReturnTest.objectAndRange
org.easymock.tests.UsageExpectAndReturnTest.objectAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndThrowTest.booleanAndRange
org.easymock.tests.UsageExpectAndThrowTest.booleanAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnInt
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnInt
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.ArgumentsMatcherTest.expectedArgumentsDelegatedToMatcher2
org.easymock.tests.ArgumentsMatcherTest.expectedArgumentsDelegatedToMatcher2
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnShort
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnShort
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndReturnTest.booleanAndRange
org.easymock.tests.UsageExpectAndReturnTest.booleanAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageDefaultReturnValueTest.defaultReturnValueBoolean
org.easymock.tests.UsageDefaultReturnValueTest.defaultReturnValueBoolean
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageDefaultReturnValueTest.defaultReturnValue
org.easymock.tests.UsageDefaultReturnValueTest.defaultReturnValue
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageOverloadedDefaultValueTest.overloading
org.easymock.tests.UsageOverloadedDefaultValueTest.overloading
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndThrowTest.objectAndRange
org.easymock.tests.UsageExpectAndThrowTest.objectAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnLong
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnLong
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnByte
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnByte
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageFloatingPointReturnValueTest.returnDouble
org.easymock.tests.UsageFloatingPointReturnValueTest.returnDouble
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndThrowTest.doubleAndRange
org.easymock.tests.UsageExpectAndThrowTest.doubleAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageExpectAndThrowTest.floatAndRange
org.easymock.tests.UsageExpectAndThrowTest.floatAndRange
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnChar
org.easymock.tests.UsageLongCompatibleReturnValueTest.returnChar
|
1 PASS | |
|
0.10784314
|
org.easymock.tests.UsageFloatingPointReturnValueTest.returnFloat
org.easymock.tests.UsageFloatingPointReturnValueTest.returnFloat
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageTest.moreThanOneArgument
org.easymock.tests.UsageTest.moreThanOneArgument
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageDefaultReturnValueTest.defaultThrowable
org.easymock.tests.UsageDefaultReturnValueTest.defaultThrowable
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageVerifyTest.twoThrows
org.easymock.tests.UsageVerifyTest.twoThrows
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageOverloadedMethodTest.overloading
org.easymock.tests.UsageOverloadedMethodTest.overloading
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageThrowableTest.throwCheckedException
org.easymock.tests.UsageThrowableTest.throwCheckedException
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageThrowableTest.throwSubclassOfError
org.easymock.tests.UsageThrowableTest.throwSubclassOfError
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.StacktraceTest.assertVerifyNoFillInStacktraceWhenExceptionNotFromEasyMock
org.easymock.tests.StacktraceTest.assertVerifyNoFillInStacktraceWhenExceptionNotFromEasyMock
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageThrowableTest.throwRuntimeException
org.easymock.tests.UsageThrowableTest.throwRuntimeException
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageExpectAndDefaultThrowTest.object
org.easymock.tests.UsageExpectAndDefaultThrowTest.object
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageTest.exactCallCountByLastThrowable
org.easymock.tests.UsageTest.exactCallCountByLastThrowable
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageThrowableTest.throwSubclassOfRuntimeException
org.easymock.tests.UsageThrowableTest.throwSubclassOfRuntimeException
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageExpectAndDefaultThrowTest.booleanType
org.easymock.tests.UsageExpectAndDefaultThrowTest.booleanType
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageThrowableTest.throwSubclassOfCheckedException
org.easymock.tests.UsageThrowableTest.throwSubclassOfCheckedException
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageVerifyTest.twoReturns
org.easymock.tests.UsageVerifyTest.twoReturns
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageExpectAndDefaultThrowTest.doubleType
org.easymock.tests.UsageExpectAndDefaultThrowTest.doubleType
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageExpectAndDefaultThrowTest.floatType
org.easymock.tests.UsageExpectAndDefaultThrowTest.floatType
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageExpectAndDefaultThrowTest.longType
org.easymock.tests.UsageExpectAndDefaultThrowTest.longType
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageDefaultReturnValueTest.defaultVoidCallable
org.easymock.tests.UsageDefaultReturnValueTest.defaultVoidCallable
|
1 PASS | |
|
0.0882353
|
org.easymock.tests.UsageThrowableTest.throwError
org.easymock.tests.UsageThrowableTest.throwError
|
1 PASS | |
|
0.068627454
|
org.easymock.tests.MockNameTest.defaultName
org.easymock.tests.MockNameTest.defaultName
|
1 PASS | |
|
0.068627454
|
org.easymock.tests.UsageTest.exactCallCountByLastCall
org.easymock.tests.UsageTest.exactCallCountByLastCall
|
1 PASS | |
|
0.068627454
|
org.easymock.tests.UsageOverloadedMethodTest.nullReturnValue
org.easymock.tests.UsageOverloadedMethodTest.nullReturnValue
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateInvalidUsageTest.setExpectedVoidCallCountWithoutMethodCall
org.easymock.tests.RecordStateInvalidUsageTest.setExpectedVoidCallCountWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.object
org.easymock.tests.UsageExpectAndThrowTest.object
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.booleanType
org.easymock.tests.UsageExpectAndThrowTest.booleanType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.floatAndCount
org.easymock.tests.UsageExpectAndReturnTest.floatAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.objectAndMinMax
org.easymock.tests.UsageExpectAndThrowTest.objectAndMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setVoidCallable
org.easymock.tests.ReplayStateInvalidUsageTest.setVoidCallable
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueObjectWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueObjectWithCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageStrictMockTest.verify
org.easymock.tests.UsageStrictMockTest.verify
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueDoubleWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueDoubleWithCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueFloatWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueFloatWithMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageTest.unexpectedCallWithArray
org.easymock.tests.UsageTest.unexpectedCallWithArray
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setBooleanReturnValueCountWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setBooleanReturnValueCountWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.booleanAndMinMax
org.easymock.tests.UsageExpectAndReturnTest.booleanAndMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setThrowableWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.setThrowableWithCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setObjectReturnValueCountWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setObjectReturnValueCountWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.booleanAndCount
org.easymock.tests.UsageExpectAndThrowTest.booleanAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndDefaultReturnTest.longType
org.easymock.tests.UsageExpectAndDefaultReturnTest.longType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.objectAndCount
org.easymock.tests.UsageExpectAndThrowTest.objectAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setDefaultVoidCallableWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setDefaultVoidCallableWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueLongWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueLongWithCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueDoubleWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueDoubleWithMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueBooleanWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueBooleanWithRange
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.DefaultMatcherTest.defaultMatcher
org.easymock.tests.DefaultMatcherTest.defaultMatcher
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndDefaultReturnTest.objectType
org.easymock.tests.UsageExpectAndDefaultReturnTest.objectType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueLongWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueLongWithMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.longAndMinMax
org.easymock.tests.UsageExpectAndReturnTest.longAndMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.doubleAndCount
org.easymock.tests.UsageExpectAndReturnTest.doubleAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setDoubleReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setDoubleReturnValueWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.booleanAndMinMax
org.easymock.tests.UsageExpectAndThrowTest.booleanAndMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ArgumentsMatcherTest.expectedArgumentsDelegatedToMatcher
org.easymock.tests.ArgumentsMatcherTest.expectedArgumentsDelegatedToMatcher
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueBoolean
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueBoolean
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setVoidCallableWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.setVoidCallableWithCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setThrowableCountWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setThrowableCountWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueBooleanWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueBooleanWithMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.doubleType
org.easymock.tests.UsageExpectAndThrowTest.doubleType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.floatAndMinMax
org.easymock.tests.UsageExpectAndReturnTest.floatAndMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueFloat
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueFloat
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.floatType
org.easymock.tests.UsageExpectAndThrowTest.floatType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.booleanAndCount
org.easymock.tests.UsageExpectAndReturnTest.booleanAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setThrowableWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setThrowableWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.floatAndMinMax
org.easymock.tests.UsageExpectAndThrowTest.floatAndMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueObjectWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueObjectWithRange
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.longAndMinMax
org.easymock.tests.UsageExpectAndThrowTest.longAndMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setLongReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setLongReturnValueWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setFloatReturnValueCountWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setFloatReturnValueCountWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueDouble
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueDouble
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueLongWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueLongWithRange
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setVoidCallableWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setVoidCallableWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueBooleanWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueBooleanWithCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueObject
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueObject
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setThrowableWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.setThrowableWithMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndDefaultReturnTest.booleanType
org.easymock.tests.UsageExpectAndDefaultReturnTest.booleanType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueDoubleWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueDoubleWithRange
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setBooleanReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setBooleanReturnValueWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndDefaultReturnTest.doubleType
org.easymock.tests.UsageExpectAndDefaultReturnTest.doubleType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndDefaultThrowTest.throwableAndDefaultThrowable
org.easymock.tests.UsageExpectAndDefaultThrowTest.throwableAndDefaultThrowable
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultVoidCallable
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultVoidCallable
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueFloatWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueFloatWithRange
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.floatType
org.easymock.tests.UsageExpectAndReturnTest.floatType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setDoubleReturnValueCountWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setDoubleReturnValueCountWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.booleanType
org.easymock.tests.UsageExpectAndReturnTest.booleanType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.longAndCount
org.easymock.tests.UsageExpectAndThrowTest.longAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndDefaultReturnTest.floatType
org.easymock.tests.UsageExpectAndDefaultReturnTest.floatType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.doubleAndMinMax
org.easymock.tests.UsageExpectAndReturnTest.doubleAndMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.doubleType
org.easymock.tests.UsageExpectAndReturnTest.doubleType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setVoidCallableWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.setVoidCallableWithMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.doubleAndMinMax
org.easymock.tests.UsageExpectAndThrowTest.doubleAndMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueObjectWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueObjectWithMinMax
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setThrowable
org.easymock.tests.ReplayStateInvalidUsageTest.setThrowable
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.longType
org.easymock.tests.UsageExpectAndReturnTest.longType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateInvalidUsageTest.openVoidCallCountWithoutMethodCall
org.easymock.tests.RecordStateInvalidUsageTest.openVoidCallCountWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setObjectReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setObjectReturnValueWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setLongReturnValueCountWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setLongReturnValueCountWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.object
org.easymock.tests.UsageExpectAndReturnTest.object
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setFloatReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setFloatReturnValueWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateMethodCallMissingTest.setVoidCallableCountWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setVoidCallableCountWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.RecordStateInvalidUsageTest.setReturnValueWithoutMethodCall
org.easymock.tests.RecordStateInvalidUsageTest.setReturnValueWithoutMethodCall
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageDefaultReturnValueTest.returnValueAndDefaultReturnValue
org.easymock.tests.UsageDefaultReturnValueTest.returnValueAndDefaultReturnValue
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.objectAndCount
org.easymock.tests.UsageExpectAndReturnTest.objectAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueFloatWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueFloatWithCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.longAndCount
org.easymock.tests.UsageExpectAndReturnTest.longAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setThrowableWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.setThrowableWithRange
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.longType
org.easymock.tests.UsageExpectAndThrowTest.longType
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueLong
org.easymock.tests.ReplayStateInvalidUsageTest.setReturnValueLong
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.ReplayStateInvalidUsageTest.setVoidCallableWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.setVoidCallableWithRange
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.floatAndCount
org.easymock.tests.UsageExpectAndThrowTest.floatAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageStrictMockTest.unexpectedCallWithArray
org.easymock.tests.UsageStrictMockTest.unexpectedCallWithArray
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndThrowTest.doubleAndCount
org.easymock.tests.UsageExpectAndThrowTest.doubleAndCount
|
1 PASS | |
|
0.05882353
|
org.easymock.tests.UsageExpectAndReturnTest.objectAndMinMax
org.easymock.tests.UsageExpectAndReturnTest.objectAndMinMax
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueInt
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueInt
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidObjectReturnValueCount
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidObjectReturnValueCount
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidFloatReturnValue
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidFloatReturnValue
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidThrowableTest.throwWrongCheckedException
org.easymock.tests.RecordStateInvalidThrowableTest.throwWrongCheckedException
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidDoubleReturnValueCount
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidDoubleReturnValueCount
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidThrowableTest.throwNull
org.easymock.tests.RecordStateInvalidThrowableTest.throwNull
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidRangeTest.setMinimumBiggerThanMaximum
org.easymock.tests.RecordStateInvalidRangeTest.setMinimumBiggerThanMaximum
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueDouble
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueDouble
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidBooleanReturnValueCount
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidBooleanReturnValueCount
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueChar
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueChar
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidLongReturnValue
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidLongReturnValue
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidFloatReturnValueCount
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidFloatReturnValueCount
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidDoubleReturnValue
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidDoubleReturnValue
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueFloat
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueFloat
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidRangeTest.setIllegalMaximumCount
org.easymock.tests.RecordStateInvalidRangeTest.setIllegalMaximumCount
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidObjectReturnValue
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidObjectReturnValue
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidBooleanReturnValue
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidBooleanReturnValue
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueShort
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueShort
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidThrowableTest.throwCheckedExceptionWhereNoCheckedExceptionIsThrown
org.easymock.tests.RecordStateInvalidThrowableTest.throwCheckedExceptionWhereNoCheckedExceptionIsThrown
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidRangeTest.setIllegalMinimumCount
org.easymock.tests.RecordStateInvalidRangeTest.setIllegalMinimumCount
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setReturnValueForVoidMethod
org.easymock.tests.RecordStateInvalidReturnValueTest.setReturnValueForVoidMethod
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueLong
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueLong
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueObject
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueObject
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueBoolean
org.easymock.tests.RecordStateInvalidUsageTest.setWrongReturnValueBoolean
|
1 PASS | |
|
0.04901961
|
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidLongReturnValueCount
org.easymock.tests.RecordStateInvalidReturnValueTest.setInvalidLongReturnValueCount
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageVarargTest.varargBooleanAccepted
org.easymock.tests.UsageVarargTest.varargBooleanAccepted
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnLongWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnLongWithMinMax
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnLongWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnLongWithRange
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageCallCountTest.mockWithOneExpectedCallPassesWithOneCall
org.easymock.tests.UsageCallCountTest.mockWithOneExpectedCallPassesWithOneCall
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageOverloadedDefaultValueTest.defaultThrowable
org.easymock.tests.UsageOverloadedDefaultValueTest.defaultThrowable
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnLong
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnLong
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageCallCountTest.tooFewCalls
org.easymock.tests.UsageCallCountTest.tooFewCalls
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.DefaultMatcherTest.failInReplayState
org.easymock.tests.DefaultMatcherTest.failInReplayState
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageVarargTest.varargShortAccepted
org.easymock.tests.UsageVarargTest.varargShortAccepted
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageCallCountTest.correctNumberOfCalls
org.easymock.tests.UsageCallCountTest.correctNumberOfCalls
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageCallCountTest.mockWithNoExpectedCallsPassesWithNoCalls
org.easymock.tests.UsageCallCountTest.mockWithNoExpectedCallsPassesWithNoCalls
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageVarargTest.varargDoubleAccepted
org.easymock.tests.UsageVarargTest.varargDoubleAccepted
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageVarargTest.varargLongAccepted
org.easymock.tests.UsageVarargTest.varargLongAccepted
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageVarargTest.varargFloatAccepted
org.easymock.tests.UsageVarargTest.varargFloatAccepted
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageVarargTest.varargObjectAccepted
org.easymock.tests.UsageVarargTest.varargObjectAccepted
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageVarargTest.varargCharAccepted
org.easymock.tests.UsageVarargTest.varargCharAccepted
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnLongWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnLongWithCount
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageVarargTest.varargByteAccepted
org.easymock.tests.UsageVarargTest.varargByteAccepted
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.ArgumentsMatcherTest.errorString
org.easymock.tests.ArgumentsMatcherTest.errorString
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageCallCountTest.mockWithOneExpectedCallFailsAtVerify
org.easymock.tests.UsageCallCountTest.mockWithOneExpectedCallFailsAtVerify
|
1 PASS | |
|
0.039215688
|
org.easymock.tests.UsageVarargTest.varargIntAccepted
org.easymock.tests.UsageVarargTest.varargIntAccepted
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.charReturningValue
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.charReturningValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.UsageTest.summarizeSameObjectArguments
org.easymock.tests.UsageTest.summarizeSameObjectArguments
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidDefaultBooleanReturnValue
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidDefaultBooleanReturnValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowDoubleWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowDoubleWithMinMax
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowLongWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowLongWithMinMax
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setDefaultReturnValueWithoutMethodCall
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setDefaultReturnValueWithoutMethodCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultThrowableTest.throwNull
org.easymock.tests.RecordStateInvalidDefaultThrowableTest.throwNull
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnObject
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnObject
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultThrowable
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultThrowable
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.intReturningValue
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.intReturningValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnFloatWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnFloatWithRange
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultThrowableTest.throwWrongCheckedException
org.easymock.tests.RecordStateInvalidDefaultThrowableTest.throwWrongCheckedException
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowLongWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowLongWithCount
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.UsageCallCountTest.tooManyCalls
org.easymock.tests.UsageCallCountTest.tooManyCalls
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnBoolean
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnBoolean
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidMatcherTest.setSameMatcherTwice
org.easymock.tests.RecordStateInvalidMatcherTest.setSameMatcherTwice
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueDouble
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueDouble
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowObjectWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowObjectWithRange
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnBooleanWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnBooleanWithRange
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowDoubleWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowDoubleWithRange
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.NiceMockControlTest.defaultReturnValueDouble
org.easymock.tests.NiceMockControlTest.defaultReturnValueDouble
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.StacktraceTest.assertReplayNoFillInStacktraceWhenExceptionNotFromEasyMock
org.easymock.tests.StacktraceTest.assertReplayNoFillInStacktraceWhenExceptionNotFromEasyMock
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidDefaultLongReturnValue
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidDefaultLongReturnValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.setMatcher
org.easymock.tests.ReplayStateInvalidUsageTest.setMatcher
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnDoubleWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnDoubleWithCount
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateMethodCallMissingTest.setDefaultThrowableWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setDefaultThrowableWithoutMethodCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowBooleanWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowBooleanWithRange
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidDefaultFloatReturnValue
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidDefaultFloatReturnValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultThrowableTest.throwCheckedExceptionWhereNoCheckedExceptionIsThrown
org.easymock.tests.RecordStateInvalidDefaultThrowableTest.throwCheckedExceptionWhereNoCheckedExceptionIsThrown
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateMethodCallMissingTest.setLongDefaultReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setLongDefaultReturnValueWithoutMethodCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidDefaultDoubleReturnValue
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidDefaultDoubleReturnValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowLong
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowLong
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueObject
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueObject
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateMethodCallMissingTest.setBooleanDefaultReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setBooleanDefaultReturnValueWithoutMethodCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ArgumentsMatcherTest.settingTheSameMatcherIsOk
org.easymock.tests.ArgumentsMatcherTest.settingTheSameMatcherIsOk
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidObjectDefaultReturnValue
org.easymock.tests.RecordStateInvalidDefaultReturnValueTest.setInvalidObjectDefaultReturnValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnBooleanWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnBooleanWithMinMax
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnFloatWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnFloatWithMinMax
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueBoolean
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueBoolean
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ObjectMethodsTest.toStringAfterActivation
org.easymock.tests.ObjectMethodsTest.toStringAfterActivation
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.UsageStrictMockTest.orderedCallsSucces
org.easymock.tests.UsageStrictMockTest.orderedCallsSucces
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.shortReturningValue
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.shortReturningValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateMethodCallMissingTest.setDoubleDefaultReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setDoubleDefaultReturnValueWithoutMethodCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnObjectWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnObjectWithCount
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateMethodCallMissingTest.setFloatDefaultReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setFloatDefaultReturnValueWithoutMethodCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidMatcherTest.setMatcherTwice2
org.easymock.tests.RecordStateInvalidMatcherTest.setMatcherTwice2
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.NiceMockControlTest.defaultReturnValueBoolean
org.easymock.tests.NiceMockControlTest.defaultReturnValueBoolean
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowFloat
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowFloat
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowBooleanWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowBooleanWithMinMax
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnDouble
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnDouble
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.UsageCallCountTest.mockWithNoExpectedCallsFailsAtFirstCall
org.easymock.tests.UsageCallCountTest.mockWithNoExpectedCallsFailsAtFirstCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowDouble
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowDouble
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowObject
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowObject
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.byteReturningValue
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.byteReturningValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.longReturningValue
org.easymock.tests.NiceMockControlLongCompatibleReturnValueTest.longReturningValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidStateChangeTest.verifyWithoutActivation
org.easymock.tests.RecordStateInvalidStateChangeTest.verifyWithoutActivation
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.NiceMockControlTest.defaultReturnValueObject
org.easymock.tests.NiceMockControlTest.defaultReturnValueObject
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.UsageTest.argumentsOrdered
org.easymock.tests.UsageTest.argumentsOrdered
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnObjectWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnObjectWithMinMax
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.DefaultMatcherTest.failIfDefaultMatcherSetTwice
org.easymock.tests.DefaultMatcherTest.failIfDefaultMatcherSetTwice
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowFloatWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowFloatWithMinMax
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowObjectWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowObjectWithMinMax
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.UsageTest.wrongArguments
org.easymock.tests.UsageTest.wrongArguments
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnFloat
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnFloat
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.StacktraceTest.assertReplayStateNoFillInStacktraceWhenExceptionNotFromEasyMock
org.easymock.tests.StacktraceTest.assertReplayStateNoFillInStacktraceWhenExceptionNotFromEasyMock
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.replay
org.easymock.tests.ReplayStateInvalidUsageTest.replay
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidStateChangeTest.activateWithoutReturnValue
org.easymock.tests.RecordStateInvalidStateChangeTest.activateWithoutReturnValue
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ObjectMethodsTest.equalsAfterActivation
org.easymock.tests.ObjectMethodsTest.equalsAfterActivation
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowBoolean
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowBoolean
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultMatcher
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultMatcher
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateMethodCallMissingTest.setObjectDefaultReturnValueWithoutMethodCall
org.easymock.tests.RecordStateMethodCallMissingTest.setObjectDefaultReturnValueWithoutMethodCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowDoubleWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowDoubleWithCount
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowFloatWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowFloatWithRange
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.NiceMockControlTest.defaultReturnValueFloat
org.easymock.tests.NiceMockControlTest.defaultReturnValueFloat
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnFloatWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnFloatWithCount
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnObjectWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnObjectWithRange
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowBooleanWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowBooleanWithCount
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowFloatWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowFloatWithCount
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidDefaultThrowableTest.setDefaultThrowableWithoutMethodCall
org.easymock.tests.RecordStateInvalidDefaultThrowableTest.setDefaultThrowableWithoutMethodCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowObjectWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowObjectWithCount
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidMatcherTest.setMatcherBeforeCallingMethods
org.easymock.tests.RecordStateInvalidMatcherTest.setMatcherBeforeCallingMethods
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnDoubleWithMinMax
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnDoubleWithMinMax
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.RecordStateInvalidMatcherTest.setMatcherTwice
org.easymock.tests.RecordStateInvalidMatcherTest.setMatcherTwice
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ObjectMethodsTest.testHashCode
org.easymock.tests.ObjectMethodsTest.testHashCode
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.UsageStrictMockTest.tooFewCallsFailure
org.easymock.tests.UsageStrictMockTest.tooFewCallsFailure
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnBooleanWithCount
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnBooleanWithCount
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueFloat
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueFloat
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.UsageCallCountTest.mockWithOneExpectedCallFailsAtSecondCall
org.easymock.tests.UsageCallCountTest.mockWithOneExpectedCallFailsAtSecondCall
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnDoubleWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndReturnDoubleWithRange
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowLongWithRange
org.easymock.tests.ReplayStateInvalidUsageTest.expectAndThrowLongWithRange
|
1 PASS | |
|
0.019607844
|
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueLong
org.easymock.tests.ReplayStateInvalidUsageTest.setDefaultReturnValueLong
|
1 PASS | |
| 1 | /* | |
| 2 | * Copyright (c) 2001-2008 OFFIS, Tammo Freese. | |
| 3 | * This program is made available under the terms of the MIT License. | |
| 4 | */ | |
| 5 | package org.easymock; | |
| 6 | ||
| 7 | import static org.easymock.EasyMock.expect; | |
| 8 | ||
| 9 | import org.easymock.internal.*; | |
| 10 | ||
| 11 | /** | |
| 12 | * A <code>MockControl</code> object controls the behavior of its associated | |
| 13 | * mock object. For more information, see the EasyMock documentation. | |
| 14 | * | |
| 15 | * @deprecated Since EasyMock 2.0, static methods on <code>EasyMock</code> are | |
| 16 | * used to create and control mock objects. | |
| 17 | */ | |
| 18 | public class MockControl<T> { | |
| 19 | private final T mock; | |
| 20 | ||
| 21 | private final MocksControl ctrl; | |
| 22 | ||
| 23 | 309 |
protected MockControl(MocksControl ctrl, Class<T> toMock) { |
| 24 | 309 | this.ctrl = ctrl; |
| 25 | 309 | this.mock = ctrl.createMock(toMock); |
| 26 | } | |
| 27 | ||
| 28 | /** | |
| 29 | * Creates a mock control object for the specified interface. The | |
| 30 | * <code>MockControl</code> and its associated mock object will not check | |
| 31 | * the order of expected method calls. An unexpected method call on the mock | |
| 32 | * object will lead to an <code>AssertionError</code>. | |
| 33 | * | |
| 34 | * @param toMock | |
| 35 | * the class of the interface to mock. | |
| 36 | * @return the mock control. | |
| 37 | */ | |
| 38 | 266 |
public static <T> MockControl<T> createControl(Class<T> toMock) { |
| 39 | 266 | return new MockControl<T>((MocksControl) EasyMock.createControl(), |
| 40 | toMock); | |
| 41 | } | |
| 42 | ||
| 43 | /** | |
| 44 | * Creates a mock control object for the specified interface. The | |
| 45 | * <code>MockControl</code> and its associated mock object will check the | |
| 46 | * order of expected method calls. An unexpected method call on the mock | |
| 47 | * object will lead to an <code>AssertionError</code>. | |
| 48 | * | |
| 49 | * @param toMock | |
| 50 | * the class of the interface to mock. | |
| 51 | * @return the mock control. | |
| 52 | */ | |
| 53 | 34 |
public static <T extends Object> MockControl<T> createStrictControl(Class<T> toMock) { |
| 54 | 34 | return new MockControl<T>( |
| 55 | (MocksControl) EasyMock.createStrictControl(), toMock); | |
| 56 | } | |
| 57 | ||
| 58 | /** | |
| 59 | * Creates a mock control object for the specified interface. The | |
| 60 | * <code>MockControl</code> and its associated mock object will not check | |
| 61 | * the order of expected method calls. An unexpected method call on the mock | |
| 62 | * object will return an empty value (0, null, false). | |
| 63 | * | |
| 64 | * @param toMock | |
| 65 | * the class of the interface to mock. | |
| 66 | * @return the mock control. | |
| 67 | */ | |
| 68 | 9 |
public static <T> MockControl<T> createNiceControl(Class<T> toMock) { |
| 69 | 9 | return new MockControl<T>((MocksControl) EasyMock.createNiceControl(), |
| 70 | toMock); | |
| 71 | } | |
| 72 | ||
| 73 | /** | |
| 74 | * Returns the mock object. | |
| 75 | * | |
| 76 | * @return the mock object of this control | |
| 77 | */ | |
| 78 | 222 |
public T getMock() { |
| 79 | 222 | return mock; |
| 80 | } | |
| 81 | ||
| 82 | /** | |
| 83 | * Resets the mock control and the mock object to the state directly after | |
| 84 | * creation. | |
| 85 | */ | |
| 86 | 6 |
public final void reset() { |
| 87 | 6 | ctrl.reset(); |
| 88 | } | |
| 89 | ||
| 90 | /** | |
| 91 | * Switches the mock object from record state to replay state. For more | |
| 92 | * information, see the EasyMock documentation. | |
| 93 | * | |
| 94 | * @throws IllegalStateException | |
| 95 | * if the mock object already is in replay state. | |
| 96 | */ | |
| 97 | 235 |
public void replay() { |
| 98 | 235 | ctrl.replay(); |
| 99 | } | |
| 100 | ||
| 101 | /** | |
| 102 | * Verifies that all expectations have been met. For more information, see | |
| 103 | * the EasyMock documentation. | |
| 104 | * | |
| 105 | * @throws IllegalStateException | |
| 106 | * if the mock object is in record state. | |
| 107 | * @throws AssertionError | |
| 108 | * if any expectation has not been met. | |
| 109 | */ | |
| 110 | 121 |
public void verify() { |
| 111 | 121 | ctrl.verify(); |
| 112 | } | |
| 113 | ||
| 114 | /** | |
| 115 | * Records that the mock object will expect the last method call once, and | |
| 116 | * will react by returning silently. | |
| 117 | * | |
| 118 | * @exception IllegalStateException | |
| 119 | * if the mock object is in replay state, if no method was | |
| 120 | * called on the mock object before, or if the last method | |
| 121 | * called on the mock was no void method. | |
| 122 | */ | |
| 123 | 7 |
public void setVoidCallable() { |
| 124 | 7 | expectLastCall( |
| 125 | "method call on the mock needed before setting void callable") | |
| 126 | .once(); | |
| 127 | } | |
| 128 | ||
| 129 | /** | |
| 130 | * Records that the mock object will expect the last method call once, and | |
| 131 | * will react by throwing the provided Throwable. | |
| 132 | * | |
| 133 | * @param throwable | |
| 134 | * the Throwable to throw. | |
| 135 | * @exception IllegalStateException | |
| 136 | * if the mock object is in replay state or if no method was | |
| 137 | * called on the mock object before. | |
| 138 | * @exception IllegalArgumentException | |
| 139 | * if the last method called on the mock cannot throw the | |
| 140 | * provided Throwable. | |
| 141 | * @exception NullPointerException | |
| 142 | * if throwable is null. | |
| 143 | */ | |
| 144 | 17 |
public void setThrowable(Throwable throwable) { |
| 145 | 17 | expectLastCall( |
| 146 | "method call on the mock needed before setting Throwable") | |
| 147 | .andThrow(throwable).once(); | |
| 148 | } | |
| 149 | ||
| 150 | /** | |
| 151 | * Records that the mock object will expect the last method call once, and | |
| 152 | * will react by returning the provided return value. | |
| 153 | * | |
| 154 | * @param value | |
| 155 | * the return value. | |
| 156 | * @throws IllegalStateException | |
| 157 | * if the mock object is in replay state, if no method was | |
| 158 | * called on the mock object before. or if the last method | |
| 159 | * called on the mock does not return <code>boolean</code>. | |
| 160 | */ | |
| 161 | 92 |
public void setReturnValue(Object value) { |
| 162 | 92 | expectLastCall( |
| 163 | "method call on the mock needed before setting return value") | |
| 164 | .andReturn(value).once(); | |
| 165 | } | |
| 166 | ||
| 167 | /** | |
| 168 | * Records that the mock object will expect the last method call a fixed | |
| 169 | * number of times, and will react by returning silently. | |
| 170 | * | |
| 171 | * @param times | |
| 172 | * the number of times that the call is expected. | |
| 173 | * @exception IllegalStateException | |
| 174 | * if the mock object is in replay state, if no method was | |
| 175 | * called on the mock object before, or if the last method | |
| 176 | * called on the mock was no void method. | |
| 177 | */ | |
| 178 | 5 |
public void setVoidCallable(int times) { |
| 179 | 5 | expectLastCall( |
| 180 | "method call on the mock needed before setting void callable") | |
| 181 | .times(times); | |
| 182 | } | |
| 183 | ||
| 184 | /** | |
| 185 | * Records that the mock object will expect the last method call a fixed | |
| 186 | * number of times, and will react by throwing the provided Throwable. | |
| 187 | * | |
| 188 | * @param throwable | |
| 189 | * the Throwable to throw. | |
| 190 | * @param times | |
| 191 | * the number of times that the call is expected. | |
| 192 | * @exception IllegalStateException | |
| 193 | * if the mock object is in replay state or if no method was | |
| 194 | * called on the mock object before. | |
| 195 | * @exception IllegalArgumentException | |
| 196 | * if the last method called on the mock cannot throw the | |
| 197 | * provided Throwable. | |
| 198 | * @exception NullPointerException | |
| 199 | * if throwable is null. | |
| 200 | */ | |
| 201 | 4 |
public void setThrowable(Throwable throwable, int times) { |
| 202 | 4 | expectLastCall( |
| 203 | "method call on the mock needed before setting Throwable") | |
| 204 | .andThrow(throwable).times(times); | |
| 205 | } | |
| 206 | ||
| 207 | /** | |
| 208 | * Records that the mock object will expect the last method call a fixed | |
| 209 | * number of times, and will react by returning the provided return value. | |
| 210 | * | |
| 211 | * @param value | |
| 212 | * the return value. | |
| 213 | * @param times | |
| 214 | * the number of times that the call is expected. | |
| 215 | * @throws IllegalStateException | |
| 216 | * if the mock object is in replay state, if no method was | |
| 217 | * called on the mock object before. or if the last method | |
| 218 | * called on the mock does not return <code>boolean</code>. | |
| 219 | */ | |
| 220 | 20 |
public void setReturnValue(Object value, int times) { |
| 221 | 20 | expectLastCall( |
| 222 | "method call on the mock needed before setting return value") | |
| 223 | .andReturn(value).times(times); | |
| 224 | } | |
| 225 | ||
| 226 | /** | |
| 227 | * Records that the mock object will expect the last method call a fixed | |
| 228 | * number of times, and will react by returning the provided return value. | |
| 229 | * | |
| 230 | * @param value | |
| 231 | * the return value. | |
| 232 | * @param range | |
| 233 | * the number of times that the call is expected. | |
| 234 | * @throws IllegalStateException | |
| 235 | * if the mock object is in replay state, if no method was | |
| 236 | * called on the mock object before. or if the last method | |
| 237 | * called on the mock does not return <code>boolean</code>. | |
| 238 | */ | |
| 239 | 15 |
public void setReturnValue(Object value, Range range) { |
| 240 | 15 | IExpectationSetters<Object> setter = expectLastCall( |
| 241 | "method call on the mock needed before setting return value") | |
| 242 | .andReturn(value); | |
| 243 | 10 | callWithConvertedRange(setter, range); |
| 244 | } | |
| 245 | ||
| 246 | /** | |
| 247 | * Records that the mock object will by default allow the last method | |
| 248 | * specified by a method call. | |
| 249 | * | |
| 250 | * @exception IllegalStateException | |
| 251 | * if the mock object is in replay state, if no method was | |
| 252 | * called on the mock object before, or if the last method | |
| 253 | * called on the mock was no void method. | |
| 254 | */ | |
| 255 | 3 |
public void setDefaultVoidCallable() { |
| 256 | 3 | ((MocksControl) expectLastCall("method call on the mock needed before setting default void callable")) |
| 257 | .setLegacyDefaultVoidCallable(); | |
| 258 | } | |
| 259 | ||
| 260 | /** | |
| 261 | * Records that the mock object will by default allow the last method | |
| 262 | * specified by a method call, and will react by throwing the provided | |
| 263 | * Throwable. | |
| 264 | * | |
| 265 | * @param throwable | |
| 266 | * throwable the throwable to be thrown | |
| 267 | * @exception IllegalArgumentException | |
| 268 | * if the last method called on the mock cannot throw the | |
| 269 | * provided Throwable. | |
| 270 | * @exception NullPointerException | |
| 271 | * if throwable is null. | |
| 272 | * @exception IllegalStateException | |
| 273 | * if the mock object is in replay state, or if no method was | |
| 274 | * called on the mock object before. | |
| 275 | */ | |
| 276 | 9 |
public void setDefaultThrowable(Throwable throwable) { |
| 277 | 9 | ctrl.setLegacyDefaultThrowable(throwable); |
| 278 | } | |
| 279 | ||
| 280 | /** | |
| 281 | * Records that the mock object will by default allow the last method | |
| 282 | * specified by a method call, and will react by returning the provided | |
| 283 | * return value. | |
| 284 | * | |
| 285 | * @param value | |
| 286 | * the return value. | |
| 287 | * @throws IllegalStateException | |
| 288 | * if the mock object is in replay state, if no method was | |
| 289 | * called on the mock object before. or if the last method | |
| 290 | * called on the mock does not return <code>boolean</code>. | |
| 291 | */ | |
| 292 | 36 |
public void setDefaultReturnValue(Object value) { |
| 293 | 36 | ctrl.setLegacyDefaultReturnValue(value); |
| 294 | } | |
| 295 | ||
| 296 | /** | |
| 297 | * Sets the ArgumentsMatcher for the last method called on the mock object. | |
| 298 | * The matcher must be set before any behavior for the method is defined. | |
| 299 | * | |
| 300 | * @throws IllegalStateException | |
| 301 | * if called in replay state, or if no method was called on the | |
| 302 | * mock object before. | |
| 303 | */ | |
| 304 | 15 |
public void setMatcher(ArgumentsMatcher matcher) { |
| 305 | 15 | ctrl.setLegacyMatcher(matcher); |
| 306 | } | |
| 307 | ||
| 308 | /** | |
| 309 | * Records that the mock object will expect the last method call between | |
| 310 | * <code>minCount</code> and <code>maxCount</code> times, and will react | |
| 311 | * by returning silently. | |
| 312 | * | |
| 313 | * @param minCount | |
| 314 | * the minimum number of times that the call is expected. | |
| 315 | * @param maxCount | |
| 316 | * the maximum number of times that the call is expected. | |
| 317 | * @exception IllegalStateException | |
| 318 | * if the mock object is in replay state, if no method was | |
| 319 | * called on the mock object before, or if the last method | |
| 320 | * called on the mock was no void method. | |
| 321 | */ | |
| 322 | 4 |
public void setVoidCallable(int minCount, int maxCount) { |
| 323 | 4 | expectLastCall( |
| 324 | "method call on the mock needed before setting void callable") | |
| 325 | .times(minCount, maxCount); | |
| 326 | } | |
| 327 | ||
| 328 | 7 |
public void setVoidCallable(Range range) { |
| 329 | 7 | IExpectationSetters<Object> setter = expectLastCall("method call on the mock needed before setting void callable"); |
| 330 | 6 | callWithConvertedRange(setter, range); |
| 331 | } | |
| 332 | ||
| 333 | /** | |
| 334 | * Records that the mock object will expect the last method call between | |
| 335 | * <code>minCount</code> and <code>maxCount</code> times, and will react | |
| 336 | * by throwing the provided Throwable. | |
| 337 | * | |
| 338 | * @param throwable | |
| 339 | * the Throwable to throw. | |
| 340 | * @param minCount | |
| 341 | * the minimum number of times that the call is expected. | |
| 342 | * @param maxCount | |
| 343 | * the maximum number of times that the call is expected. | |
| 344 | * @exception IllegalStateException | |
| 345 | * if the mock object is in replay state or if no method was | |
| 346 | * called on the mock object before. | |
| 347 | * @exception IllegalArgumentException | |
| 348 | * if the last method called on the mock cannot throw the | |
| 349 | * provided Throwable. | |
| 350 | * @exception NullPointerException | |
| 351 | * if throwable is null. | |
| 352 | */ | |
| 353 | 1 |
public void setThrowable(Throwable throwable, int minCount, int maxCount) { |
| 354 | 1 | expectLastCall( |
| 355 | "method call on the mock needed before setting Throwable") | |
| 356 | .andThrow(throwable).times(minCount, maxCount); | |
| 357 | } | |
| 358 | ||
| 359 | 3 |
public void setThrowable(Throwable throwable, Range range) { |
| 360 | 3 | IExpectationSetters<Object> setter = expectLastCall( |
| 361 | "method call on the mock needed before setting Throwable") | |
| 362 | .andThrow(throwable); | |
| 363 | 2 | callWithConvertedRange(setter, range); |
| 364 | } | |
| 365 | ||
| 366 | /** | |
| 367 | * Records that the mock object will expect the last method call between | |
| 368 | * <code>minCount</code> and <code>maxCount</code> times, and will react | |
| 369 | * by returning the provided return value. | |
| 370 | * | |
| 371 | * @param value | |
| 372 | * the return value. | |
| 373 | * @param minCount | |
| 374 | * the minimum number of times that the call is expected. | |
| 375 | * @param maxCount | |
| 376 | * the maximum number of times that the call is expected. | |
| 377 | * @throws IllegalStateException | |
| 378 | * if the mock object is in replay state, if no method was | |
| 379 | * called on the mock object before. or if the last method | |
| 380 | * called on the mock does not return <code>boolean</code>. | |
| 381 | */ | |
| 382 | 7 |
public void setReturnValue(Object value, int minCount, int maxCount) { |
| 383 | 7 | expectLastCall( |
| 384 | "method call on the mock needed before setting return value") | |
| 385 | .andReturn(value).times(minCount, maxCount); | |
| 386 | } | |
| 387 | ||
| 388 | /** | |
| 389 | * Exactly one call. | |
| 390 | */ | |
| 391 | public static final Range ONE = MocksControl.ONCE; | |
| 392 | ||
| 393 | /** | |
| 394 | * One or more calls. | |
| 395 | */ | |
| 396 | public static final Range ONE_OR_MORE = MocksControl.AT_LEAST_ONCE; | |
| 397 | ||
| 398 | /** | |
| 399 | * Zero or more calls. | |
| 400 | */ | |
| 401 | public static final Range ZERO_OR_MORE = MocksControl.ZERO_OR_MORE; | |
| 402 | ||
| 403 | /** | |
| 404 | * Matches if each expected argument is equal to the corresponding actual | |
| 405 | * argument. | |
| 406 | */ | |
| 407 | public static final ArgumentsMatcher EQUALS_MATCHER = new EqualsMatcher(); | |
| 408 | ||
| 409 | /** | |
| 410 | * Matches always. | |
| 411 | */ | |
| 412 | public static final ArgumentsMatcher ALWAYS_MATCHER = new AlwaysMatcher(); | |
| 413 | ||
| 414 | /** | |
| 415 | * Matches if each expected argument is equal to the corresponding actual | |
| 416 | * argument for non-array arguments; array arguments are compared with the | |
| 417 | * appropriate <code>java.util.Arrays.equals()</code> -method. | |
| 418 | */ | |
| 419 | public static final ArgumentsMatcher ARRAY_MATCHER = new ArrayMatcher(); | |
| 420 | ||
| 421 | /** | |
| 422 | * Sets the default ArgumentsMatcher for all methods of the mock object. The | |
| 423 | * matcher must be set before any behavior is defined on the mock object. | |
| 424 | * | |
| 425 | * @throws IllegalStateException | |
| 426 | * if called in replay state, or if any behavior is already | |
| 427 | * defined on the mock object. | |
| 428 | */ | |
| 429 | 8 |
public void setDefaultMatcher(ArgumentsMatcher matcher) { |
| 430 | 8 | ctrl.setLegacyDefaultMatcher(matcher); |
| 431 | } | |
| 432 | ||
| 433 | /** | |
| 434 | * Same as {@link MockControl#setReturnValue(Object)}. For explanation, see | |
| 435 | * "Convenience Methods for Return Values" in the EasyMock documentation. | |
| 436 | * | |
| 437 | * @param ignored | |
| 438 | * an ignored value. | |
| 439 | */ | |
| 440 | 10 |
public <V1, V2 extends V1> void expectAndReturn(V1 ignored, V2 value) { |
| 441 | 10 | EasyMock.expectLastCall().andReturn(value).once(); |
| 442 | } | |
| 443 | ||
| 444 | 1 |
public void expectAndReturn(int ignored, int value) { |
| 445 | 1 | this.expectAndReturn((Object) ignored, (Object) value); |
| 446 | } | |
| 447 | ||
| 448 | /** | |
| 449 | * Same as {@link MockControl#setReturnValue(Object, Range)}. For | |
| 450 | * explanation, see "Convenience Methods for Return Values" in the EasyMock | |
| 451 | * documentation. | |
| 452 | * | |
| 453 | * @param ignored | |
| 454 | * an ignored value. | |
| 455 | */ | |
| 456 | 10 |
public <V1, V2 extends V1> void expectAndReturn(V1 ignored, V2 value, |
| 457 | Range range) { | |
| 458 | 10 | IExpectationSetters<Object> expectAndReturn = EasyMock.expectLastCall() |
| 459 | .andReturn(value); | |
| 460 | 5 | callWithConvertedRange(expectAndReturn, range); |
| 461 | } | |
| 462 | ||
| 463 | 1 |
public void expectAndReturn(int ignored, int value, Range range) { |
| 464 | 1 | this.expectAndReturn((Object) ignored, (Object) value, range); |
| 465 | } | |
| 466 | ||
| 467 | /** | |
| 468 | * Same as {@link MockControl#setReturnValue(Object, int)}. For | |
| 469 | * explanation, see "Convenience Methods for Return Values" in the EasyMock | |
| 470 | * documentation. | |
| 471 | * | |
| 472 | * @param ignored | |
| 473 | * an ignored value. | |
| 474 | */ | |
| 475 | 10 |
public <V1, V2 extends V1> void expectAndReturn(V1 ignored, V2 value, |
| 476 | int count) { | |
| 477 | 10 | EasyMock.expectLastCall().andReturn(value).times(count); |
| 478 | } | |
| 479 | ||
| 480 | 1 |
public void expectAndReturn(int ignored, int value, int count) { |
| 481 | 1 | this.expectAndReturn((Object) ignored, (Object) value, count); |
| 482 | } | |
| 483 | ||
| 484 | /** | |
| 485 | * Same as {@link MockControl#setReturnValue(Object, int, int)}. For | |
| 486 | * explanation, see "Convenience Methods for Return Values" in the EasyMock | |
| 487 | * documentation. | |
| 488 | * | |
| 489 | * @param ignored | |
| 490 | * an ignored value. | |
| 491 | */ | |
| 492 | 10 |
public <V1, V2 extends V1> void expectAndReturn(V1 ignored, V2 value, |
| 493 | int min, int max) { | |
| 494 | 10 | EasyMock.expectLastCall().andReturn(value).times(min, max); |
| 495 | } | |
| 496 | ||
| 497 | 1 |
public void expectAndReturn(int ignored, int value, int min, int max) { |
| 498 | 1 | this.expectAndReturn((Object) ignored, (Object) value, min, max); |
| 499 | } | |
| 500 | ||
| 501 | /** | |
| 502 | * Same as {@link MockControl#setThrowable(Throwable)}. For explanation, | |
| 503 | * see "Convenience Methods for Throwables" in the EasyMock documentation. | |
| 504 | * | |
| 505 | * @param ignored | |
| 506 | * an ignored value. | |
| 507 | */ | |
| 508 | 10 |
public void expectAndThrow(Object ignored, Throwable throwable) { |
| 509 | 10 | EasyMock.expect(ignored).andThrow(throwable).once(); |
| 510 | } | |
| 511 | ||
| 512 | /** | |
| 513 | * Same as {@link MockControl#setThrowable(Throwable, Range)}. For | |
| 514 | * explanation, see "Convenience Methods for Throwables" in the EasyMock | |
| 515 | * documentation. | |
| 516 | * | |
| 517 | * @param ignored | |
| 518 | * an ignored value. | |
| 519 | */ | |
| 520 | 10 |
public void expectAndThrow(Object ignored, Throwable throwable, Range range) { |
| 521 | 10 | IExpectationSetters<Object> setter = EasyMock.expect(ignored).andThrow( |
| 522 | throwable); | |
| 523 | 5 | callWithConvertedRange(setter, range); |
| 524 | } | |
| 525 | ||
| 526 | /** | |
| 527 | * Same as {@link MockControl#setThrowable(Throwable, int)}. For | |
| 528 | * explanation, see "Convenience Methods for Throwables" in the EasyMock | |
| 529 | * documentation. | |
| 530 | * | |
| 531 | * @param ignored | |
| 532 | * an ignored value. | |
| 533 | */ | |
| 534 | 10 |
public void expectAndThrow(Object ignored, Throwable throwable, int count) { |
| 535 | 10 | expect(ignored).andThrow(throwable).times(count); |
| 536 | } | |
| 537 | ||
| 538 | /** | |
| 539 | * Same as {@link MockControl#setThrowable(Throwable, int, int)}. For | |
| 540 | * explanation, see "Convenience Methods for Throwables" in the EasyMock | |
| 541 | * documentation. | |
| 542 | * | |
| 543 | * @param ignored | |
| 544 | * an ignored value. | |
| 545 | */ | |
| 546 | 10 |
public void expectAndThrow(Object ignored, Throwable throwable, int min, |
| 547 | int max) { | |
| 548 | 10 | expect(ignored).andThrow(throwable).times(min, max); |
| 549 | } | |
| 550 | ||
| 551 | /** | |
| 552 | * Same as {@link MockControl#setDefaultReturnValue(Object)}. For | |
| 553 | * explanation, see "Convenience Methods for Return Values" in the EasyMock | |
| 554 | * documentation. | |
| 555 | * | |
| 556 | * @param ignored | |
| 557 | * an ignored value. | |
| 558 | */ | |
| 559 | 5 |
public <V1, V2 extends V1> void expectAndDefaultReturn(V1 ignored, V2 value) { |
| 560 | 5 | EasyMock.expectLastCall().andStubReturn(value); |
| 561 | } | |
| 562 | ||
| 563 | /** | |
| 564 | * Same as {@link MockControl#setDefaultThrowable(Throwable)}. For | |
| 565 | * explanation, see "Convenience Methods for Throwables" in the EasyMock | |
| 566 | * documentation. | |
| 567 | * | |
| 568 | * @param ignored | |
| 569 | * an ignored value. | |
| 570 | */ | |
| 571 | 5 |
public void expectAndDefaultThrow(Object ignored, Throwable throwable) { |
| 572 | 5 | expectLastCall( |
| 573 | "method call on the mock needed before setting default Throwable") | |
| 574 | .andStubThrow(throwable); | |
| 575 | } | |
| 576 | ||
| 577 | 190 |
private IExpectationSetters<Object> expectLastCall(String failureMessage) { |
| 578 | 190 | try { |
| 579 | 190 | return EasyMock.expectLastCall(); |
| 580 | } catch (IllegalStateException e) { | |
| 581 | 47 | throw new IllegalStateException(failureMessage); |
| 582 | } | |
| 583 | } | |
| 584 | ||
| 585 | 28 |
private void callWithConvertedRange(IExpectationSetters<Object> setter, Range range) { |
| 586 | 28 | if (range == ONE) { |
| 587 | 10 | setter.once(); |
| 588 | 18 | } else if (range == ONE_OR_MORE) { |
| 589 | 14 | setter.atLeastOnce(); |
| 590 | 4 | } else if (range == ZERO_OR_MORE) { |
| 591 | 3 | setter.anyTimes(); |
| 592 | } else { | |
| 593 | 1 | throw new IllegalArgumentException("Unexpected Range"); |
| 594 | } | |
| 595 | } | |
| 596 | ||
| 597 | } | |
|
||||||||||