Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
33 0 0 0 100% 4.731 s

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
org.bremersee.exception 33 0 0 0 100% 4.731 s

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

org.bremersee.exception

- Class Tests Errors Failures Skipped Success Rate Time
RestApiExceptionMapperPropertiesTest 6 0 0 0 100% 2.278 s
RestApiExceptionParserImplTest 6 0 0 0 100% 0.974 s
RestApiExceptionParserTest 1 0 0 0 100% 0.006 s
RestApiResponseErrorHandlerTest 3 0 0 0 100% 0.467 s
RestApiExceptionMapperForWebTest 9 0 0 0 100% 0.988 s
RestApiResponseTypeTest 8 0 0 0 100% 0.018 s

Test Cases

[Summary] [Package List] [Test Cases]

RestApiExceptionMapperPropertiesTest

findExceptionMapping(SoftAssertions) 1.213 s
getDefaultExceptionMapping(SoftAssertions) 0.721 s
getDefaultExceptionMappingConfig(SoftAssertions) 0.146 s
findExceptionMappingConfig(SoftAssertions) 0.148 s
getExceptionMappingConfigs 0.014 s
getExceptionMappings 0.002 s

RestApiExceptionParserImplTest

parseErrorTimestamp(SoftAssertions) 0.003 s
getContentTypeCharset(SoftAssertions) 0.163 s
getDefaultCharset 0.001 s
parseException(SoftAssertions) 0.204 s
getObjectMapper(SoftAssertions) 0.110 s
getRestApiExceptionFromHeaders(SoftAssertions) 0.002 s

RestApiExceptionParserTest

parseException(SoftAssertions) 0.004 s

RestApiResponseErrorHandlerTest

defaultConstructor 0.372 s
hasError(SoftAssertions) 0.067 s
handleError 0.023 s

RestApiExceptionMapperForWebTest

fromStatus 0.007 s
buildWithRestApiResponseException(SoftAssertions) 0.935 s
buildWithConfiguredRuntimeException(SoftAssertions) 0.006 s
buildWithServiceExceptionAndCause(SoftAssertions) 0.011 s
buildWithRuntimeExceptionAndMethodAnnotation(SoftAssertions) 0.006 s
detectHttpStatus 0.001 s
buildWithRuntimeExceptionAndClassAnnotation(SoftAssertions) 0.004 s
buildWithAnnotatedRuntimeException(SoftAssertions) 0.004 s
getError(SoftAssertions) 0.003 s

RestApiResponseTypeTest

detectXmlByContentType(SoftAssertions) 0.001 s
detectHeaderByAccepted(SoftAssertions) 0.002 s
getContentType(SoftAssertions) 0.002 s
detectJsonByAccepted(SoftAssertions) 0.002 s
detectJsonByContentType(SoftAssertions) 0.001 s
detectHeaderByContentType(SoftAssertions) 0.001 s
detectXmlByAccepted(SoftAssertions) 0.002 s
getContentTypeValue(SoftAssertions) 0.001 s