Summary

[ summary ] [ package list ] [ test cases ]

Tests Errors Failures Success rate Time(s)
245 0 0 100.00% 2.92

Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Package List

[ summary ] [ package list ] [ test cases ]

Package Tests Errors Failures Success Rate Time
org.jmock.constraint 17 0 0 100.00% 0.24
org.jmock.dynamic 50 0 0 100.00% 0.78
org.jmock.expectation 138 0 0 100.00% 1.19
org.jmock.functional 27 0 0 100.00% 0.56
org.jmock.matcher 13 0 0 100.00% 0.15

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.jmock.constraint

Class Tests Errors Failures Success Rate Time
ConstraintsTest 17 0 0 100.00% 0.241

org.jmock.dynamic

Class Tests Errors Failures Success Rate Time
CoreMockTest 14 0 0 100.00% 0.120
DynamicMockErrorTest 1 0 0 100.00% 0.060
DynaMockTest 3 0 0 100.00% 0.130
InvocationMockerBuilderTest 3 0 0 100.00% 0.060
InvocationMockerTest 8 0 0 100.00% 0.120
InvocationTest 10 0 0 100.00% 0.140
LIFOInvocationDispatcherTest 9 0 0 100.00% 0.080
StubTest 2 0 0 100.00% 0.070

org.jmock.expectation

Class Tests Errors Failures Success Rate Time
TestAssertMo 13 0 0 100.00% 0.080
Te stExpectationCounter 8 0 0 100.00% 0.081
TestExpectationDoubleValue 8 0 0 100.00% 0.071
TestExpectationList 17 0 0 100.00% 0.081
TestExpectationMap 7 0 0 100.00% 0.090
TestExpectationSegment 7 0 0 100.00% 0.070
TestExpectationSet 22 0 0 100.00% 0.090
TestExpectationValue 17 0 0 100.00% 0.070
TestMapEntry 2 0 0 100.00% 0.060
TestNull 2 0 0 100.00% 0.060
TestReturnObjectBag 9 0 0 100.00% 0.101
TestReturnObjectList 4 0 0 100.00% 0.060
TestReturnObjectMap 9 0 0 100.00% 0.091
TestReturnValue 6 0 0 100.00% 0.071
TestVerifier 7 0 0 100.00% 0.111

org.jmock.functional

Class Tests Errors Failures Success Rate Time
ReturnMockTest 9 0 0 100.00% 0.190
ThrowableMockTest 9 0 0 100.00% 0.190
VoidMockTest 9 0 0 100.00% 0.180

org.jmock.matcher

Class Tests Errors Failures Success Rate Time
CallOnceMatcherTest 4 0 0 100.00% 0.060
InvocationMatcherTest 9 0 0 100.00% 0.090

Test Cases

[ summary ] [ package list ] [ test cases ]

ConstraintsTest

testIsNull Success 0.01
testIsSame Success 0.00
testIsEqual Success 0.01
testIsEqualObjectArray Success 0.00
testIsEqualToStringForNestedConstraint Success 0.01
testIsEqualToStringOnProxyArgument Success 0.09
testIsEqualEquals Success 0.00
testIsGreaterThan Success 0.01
testIsLessThan Success 0.01
testIsAnything Success 0.00
testIsInstanceOf Success 0.01
testIsNot Success 0.01
testAnd Success 0.01
testOr Success 0.01
te stIsEventFrom Success 0.00
testIsEventSubtypeFrom Success 0.01
testIsCloseTo Success 0.00

CoreMockTest

testMockAnnotatesAssertionFailedError Success 0.04
testProxyReturnsConfiguredResult Success 0.00
testExceptionsPropagatedThroughProxy Success 0.00
testMockVerifies Success 0.01
testProxyEquality Success 0.00
testProxyInequality Success 0.00
testProxyEqualityWithNull Success 0.00
testCallingGetMockNameOnProxyReturnsNameOfUnderlyingMock Success 0.00
testGeneratesMockNameFromInterfaceNameIfNoNameSpecified Success 0.00
testResultOfToStringContainsName Success 0.01
testProxyToString Success 0.00
testAddAnInvokable Success 0.00
testReset Success 0.00
testVerifyFailuresIncludeMockName Success 0.00

DynamicMockErrorTest

testMessageGeneration Success 0.01

DynaMockTest

testToStringComesFromUnderlyingDynamicMock Success 0.01
testMethodAddsInvocationMockerAndReturnsMethodExpectation Success 0.08
testVerifyCallsUnderlyingMock Success 0.00

InvocationMockerBuilderTest

testIsVoidSetsVoidStub Success 0.01
testReturnsSetsReturnStub Success 0.01
testThrowsSetsThrowStub Success 0.00

InvocationMockerTest

testMatchesIfEverythingMatches Success 0.01
testDoesNotMatchIfEverythingMatches Success 0.00
testMatchesInvocationWithParameters Success 0.03
testDoesNotMatchWithDifferentParameter Success 0.00
testMatchesInvocationBeforeCallingStub Success 0.02
testDelegatesVerifyToInvocationMatchers Success 0.00
testDelegatesInvocationToStubObject Success 0.00
testCanAddExtraMatchers Success 0.00

InvocationTest

testCanBeConstructedWithExplicitCallDetails Success 0.02
testCanBeConstructedFromAMethodObject Success 0.00
testConstructorInterpretsNullParameterValueArrayAsZeroArguments Success 0.00
testTestsForEqualityOnMethodSignatureAndArguments Success 0.00
testFollowsEqualsHashcodeProtocol Success 0.00
testToStringWithTwoArguments Success 0.02
testToStringWithStringArray Success 0.00
testToStringWithPrimitiveArray Success 0.00
testMethodToStringWithProxyArg Success 0.06
testMethodToStringWithNullArg Success 0.00

LIFOInvocationDispatcherTest

testInvokeFailsWhenEmpty Success 0.01
testInvokesInvokableThatMatches Success 0.00
testReturnsValueFromInvokable Success 0.00
testPropagatesExceptionFromInvokable Success 0.00
testInvokeFailsWhenNoInvokablesMatch Success 0.00
testLaterInvokablesOverrideEarlierInvokables Success 0.01
testSearchesForMatchInLIFOOrder Success 0.00
tes tVerifiesAllInvokables Success 0.00
testClearRemovesAllInvokables Success 0.00

StubTest

testReturnStub Success 0.01
testThrowStub Success 0.01

TestAssertMo

testAssertExcludes Success 0.01
testAssertExcludesFails Success 0.00
testAssertIncludes Success 0.00
testAssertIncludesFails Success 0.00
testAssertStartsWith Success 0.00
testAssertStartsWithFails Success 0.00
testDifferentArrays Success 0.01
testDifferentLengthArrays Success 0.00
testDifferentObjectArrays Success 0.00
testEqualArrays Success 0.00
testEqualEmptyArrays Success 0.00
testFailureCheckerWithFailure Success 0.01
testFailureCheckerWithoutFailure Success 0.00

TestExpectationCounter

testExpectNothing Success 0.02
testExpectNothingFailure Success 0.00
testFailImmediately Success 0.00
testFailOnVerify Success 0.01
testFailure Success 0.00
testFlushActual Success 0.00
testHasNoExpectations Success 0.00
testSuccess Success 0.00

TestExpectationDoubleValue

testExpectNothing Success 0.01
testExpectNothingFail Success 0.00
testFailOnVerify Success 0.01
testFlushActual Success 0.00
testHasNoExpectations Success 0.00
testFailOutsideError Success 0.00
testPassOnError Success 0.00
testPassWithinError Success 0.00

TestExpectationList

testSorted Success 0.01
testEmpty Success 0.00
testFailImmediately Success 0.00
testFailImmediatelyAddingTooMany Success 0.00
testFailOnSizes Success 0.00
testFailOnVerify Success 0.00
testFlushActual Success 0.00
testHasExpectations Success 0.00
testHasExpectationsForAddingManyArray Success 0.00
testHasExpectationsForAddingManyVector Success 0.00
tes tHasNoExpectations Success 0.00
testManyFromEnumeration Success 0.00
testManyFromIterator Success 0.00
testMultiFailureFromEnumeration Success 0.00
testMultiFailureFromIterator Success 0.00
testMultiFailureSizes Success 0.00
testExpectingALong Success 0.00

TestExpectationMap

testExpectMissingEntry Success 0.04
testExpectNullEntry Success 0.00
testExpectOneEntry Success 0.00
testExpectTwoEntries Success 0.00
te stFailOneEntry Success 0.00
testFailOnVerify Success 0.00
testOverwriteEntry Success 0.00

TestExpectationSegment

testExpectNothing Success 0.01
testExpectNothingFail Success 0.00
testFailOnVerify Success 0.00
testFailsImmediately Success 0.01
testFlushActual Success 0.00
testHasNoExpectations Success 0.00
testPasses Success 0.00

TestExpectationSet

testMultiUnsorted Success 0.01
testChangingHashcode Success 0.00
testChanginHashcodeImediateCheck Success 0.00
testMultiUnsortedSet Success 0.00
testUnsorted Success 0.00
testUnsortedSet Success 0.00
testEmpty Success 0.00
testFailImmediately Success 0.01
testFailImmediatelyAddingTooMany Success 0.00
testFailOnSizes Success 0.00
testFailOnVerify Success 0.01
testFlushActual Success 0.00
testHasExpectations Success 0.00
testHasExpectationsForAddingManyArray Success 0.00
testHasExpectationsForAddingManyVector Success 0.00
testHasNoExpectations Success 0.00
testManyFromEnumeration Success 0.00
testManyFromIterator Success 0.00
testMultiFailureFromEnumeration Success 0.00
testMultiFailureFromIterator Success 0.00
testMultiFailureSizes Success 0.00
testExpectingALong Success 0.00

TestExpectationValue

testBooleanFail Success 0.01
testBooleanPass Success 0.00
testExpectNothing Success 0.00
testExpectNothingFail Success 0.00
testFailOnVerify Success 0.01
testFlushActual Success 0.00
testHasNoExpectations Success 0.00
testIntFail Success 0.00
testIntPass Success 0.00
testLongFail Success 0.00
testLongPass Success 0.00
testDoubleFail Success 0.01
testDoublePass Success 0.00
testNullFail Success 0.00
testNullPass Suc cess 0.00
testObject Success 0.00
testObjectFail Success 0.00

TestMapEntry

testEquals Success 0.01
testHashCode Success 0.00

TestNull

testEquals Success 0.01
testDescription Success 0.00

TestReturnObjectBag

testLeftoverObjectFails Success 0.03
testEmptyList Success 0.00
testReturnSucceeds Success 0.00
testReturnInt Success 0.00
testReturnBoolean Success 0.00
testShortKey Success 0.00
testNoListForKey Success 0.00
testNullKey Success 0.01
testTooManyReturns Success 0.00

TestReturnObjectList

testLeftoverObjectFails Success 0.01
testEmptyList Success 0.00
testReturnSucceeds Success 0.00
testTooManyReturns Success 0.00

TestReturnObjectMap

testLeftoverObjectFails Success 0.03
testEmptyList Success 0.00
testReturnSucceeds Success 0.00
testReturnInt Success 0.01
testReturnBoolean Success 0.00
testShortKey Success 0.00
testNoListForKey Success 0.00
testNullKey Success 0.00
testManyReturns Success 0.00

TestReturnValue

testGetNull Success 0.01
testGetValue Success 0.00
testGetBooleanValue Success 0.00
testIntValue Success 0.00
testLongValue Success 0.00
testValueNotSet Success 0.00

TestVerifier

testInheritVerifiableFails Success 0.04
testInheritVerifiablePasses Success 0.00
testNoVerifiables Success 0.01
testOneVerifiableFails Success 0.00
testOneVerifiablePasses Success 0.00
testNoLoopVerifySingleLevel Success 0.00
testNoLoopVerifyMultiLevel Success 0.00

ReturnMockTest

testMethodToMakeTestRunnerNoticeTestCase Success 0.07
testHasDefaultNameBasedOnMockedType Success 0.02
testCanBeExplicitlyNamed Success 0.00
testPassesIfMockedMethodCalled Success 0.04
testFailsIfMockedMethodCalledTwice Success 0.00
testFailsIfMockedMethodNotCalled Success 0.00
testFailsImmediatelyIfUnexpectedMethodCalled Success 0.00
testPassesIfMockedMethodCalledWithParameters Success 0.01
testInvocationFailsIfParameterValueIncorrect Success 0.00

ThrowableMockTest

testMethodToMakeTestRunnerNoticeTestCase Success 0.08
testHasDefaultNameBasedOnMockedType Success 0.02
testCanBeExplicitlyNamed Success 0.00
testPassesIfMockedMethodCalled Success 0.03
testFailsIfMockedMethodCalledTwice Success 0.00
testFailsIfMockedMethodNotCalled Success 0.00
testFailsImmediatelyIfUnexpectedMethodCalled Success 0.00
testPassesIfMockedMethodCalledWithParameters Success 0.00
testInvocationFailsIfParameterValueIncorrect Success 0.00

VoidMockTest

testMethodToMakeTestRunnerNoticeTestCase Success 0.07
testHasDefaultNameBasedOnMockedType Success 0.01
testCanBeExplicitlyNamed Success 0.01
testPassesIfMockedMethodCalled Success 0.04
testFailsIfMockedMethodCalledTwice Success 0.00
testFailsIfMockedMethodNotCalled Success 0.00
testFailsImmediatelyIfUnexpectedMethodCalled Success 0.00
testPassesIfMockedMethodCalledWithParameters Success 0.00
testInvocationFailsIfParameterValueIncorrect Success 0.00

CallOnceMatcherTest

testWillMatchIfNotYetInvoked Success 0.01
testVerifyFailsIfNotYetInvoked Success 0.00
testWillNotMatchAfterInvocation Success 0.00
testVerifyPassesAfterInvocation Success 0.00

InvocationMatcherTest

testNameMatchesWhenConstraintIsAnything Success 0.03
testNameMatchesWhenConstraintIsNothing Success 0.00
testNameMatchesGivenString Success 0.00
testNameDoesNotMatchIncorrectString Success 0.00
testMatchWhenNoArgumentsOrConstraints Success 0.01
testNoMatchWhenTooManyArguments Success 0.00
testNoMatchWhenTooFewArguments Success 0.00
testNoMatchWhenAnyArgumentDoNotConform Success 0.00
testArgumentsMatchWhenAllValuesMatch Success 0.00