Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
70 0 0 0 100% 2.69

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


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
com.spotify.apollo.test 18 0 0 0 100% 0.54
com.spotify.apollo.test.helper 16 0 0 0 100% 2.139
com.spotify.apollo.test.unit 36 0 0 0 100% 0.011

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

com.spotify.apollo.test

Class Tests Errors Failures Skipped Success Rate Time
FallbackClientTest 1 0 0 0 100% 0.213
StubClientTest 17 0 0 0 100% 0.327

com.spotify.apollo.test.helper

Class Tests Errors Failures Skipped Success Rate Time
ServiceHelperTest 16 0 0 0 100% 2.139

com.spotify.apollo.test.unit

Class Tests Errors Failures Skipped Success Rate Time
RequestMatchersTest 2 0 0 0 100% 0.001
ResponseMatchersTest 18 0 0 0 100% 0.007
RouteMatchersTest 8 0 0 0 100% 0.001
StatusTypeMatchersTest 8 0 0 0 100% 0.002

Test Cases

[Summary] [Package List] [Test Cases]

FallbackClientTest

shouldFallBackIfNoResponseFound 0.213

ServiceHelperTest

smokeTest 0.449
shouldUseScheme 0.129
shouldValidateScheme 0
smokeTest2 0.001
testPayload 0
shouldCatchExceptionBeforeTimeout 0.001
shouldResetConfig 0.021
testCallServiceClient 0.013
callTest 0.319
shouldDisallowRequestsBeforeStarted 0.011
shouldCatchErrorBeforeTimeout 0.02
testDomain 0.123
shouldTimeoutIfStartupIsSlow 0.911
shouldSupportRegisteringAdditionalModules 0.016
shouldSeeConfigValues 0.009
shouldOverrideConfig 0.116

StubClientTest

shouldRespectCustomRequestMatcher 0
shouldSimulateDelay 0.315
shouldSupportNoPayloads 0
shouldSupportTrackingRequests 0.005
shouldReplyWithStatusOnly 0.001
shouldReturnStatusCodeIntegers 0.002
shouldReturnConstantReplies 0
shouldDisallowInfiniteIterativeReplies 0.001
shouldDisallowChangingDelayForResponseSource 0
shouldReturnIterativeRepliesWithVaryingStatusCodes 0
shouldSupportTrackingRequestsAndResponses 0
shouldReturnIterativeReplies 0.001
shouldSupportHeadersForResponses 0
shouldReturnConfiguredStatusCode 0
shouldClearSetupRequestsOnClear 0.001
shouldDisallowAddingDelayForResponseSource 0
shouldSupportClearingRequests 0.001

RequestMatchersTest

shouldMatchUri 0.001
shouldMatchMethod 0

ResponseMatchersTest

hasStatusMatcherMatchesResponseWithMatchingStatusType 0
hasPayloadMatcherDoesCallPayloadMatcherWhenResponseHasNoPayload 0.005
hasNoPayloadMatcherMatchesResponseWithoutPayload 0
doesNotHaveHeaderMatcherDoesNotMatchResponseWithMatchingHeader 0
hasStatusMatcherDoesNotMatchResponseWithNonMatchingStatusType 0
hasHeaderMatcherDoesNotMatchResponseWithNoHeaders 0.001
hasNoHeadersMatcherDoesNotMatchResponseWithSomeHeader 0
hasHeaderMatcherMatchesResponseWithMultipleHeadersAndMatchingHeader 0
hasHeaderMatcherDoesNotMatchResponseWithHeaderNotMatchingValue 0
hasNoHeadersMatcherMatchesResponseWithoutHeader 0
hasPayloadMatcherDoesNotMatchResponseWithNoPayload 0
hasHeaderMatcherMatchesResponseWithMatchingHeader 0
hasPayloadMatcherDoesNotMatchResponseWithNonMatchingPayload 0
hasPayloadMatcherMatchesResponseWithMatchingPayload 0
doesNotHaveHeaderMatcherMatchesResponseWithNonMatchingHeader 0
hasNoPayloadMatcherDoesNotMatchesResponseWithPayload 0
hasHeaderMatcherDoesNotMatchResponseWithMissingHeader 0
doesNotHaveHeaderMatcherMatchesResponseWithNoHeaders 0.001

RouteMatchersTest

hasMethod_shouldFail 0
hasUriAndMethod_shouldMatchMethodAndPath 0
hasMethod_shouldMatchPath 0.001
hasUri_shouldMatchPath 0
hasUriAndMethod_shouldFailPath 0
hasUri_shouldFail 0
hasUriAndMethod_shouldFailMethodAndPath 0
hasUriAndMethod_shouldFailMethod 0

StatusTypeMatchersTest

withTypeCodeMatcherMatchesStatusTypeWithSameStatusCode 0.001
reasonPhraseMatcherDoesNotMatchStatusTypeWithNonMatchingReasonPhrase 0
belongsToFamilyMatcherMatchesStatusTypeWithSameFamily 0.001
reasonPhraseMatcherMatchesStatusTypeWithMatchingReasonPhrase 0
belongsToFamilyMatcherDoesNotMatchStatusTypeWithDifferentFamily 0
withCodeMatcherMatchesStatusTypeWithSameStatusCode 0
withCodeMatcherDoesNotMatchStatusTypeWithDifferentStatusCode 0
withTypeCodeMatcherDoesNotMatchStatusTypeWithDifferentStatusCode 0