Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
52 0 0 0 100% 2.425

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.security.core 14 0 0 0 100% 0.09
org.bremersee.exception 1 0 0 0 100% 0.003
org.bremersee.security.authentication 35 0 0 0 100% 2.328
org.bremersee.security 2 0 0 0 100% 0.004

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

org.bremersee.security.core

Class Tests Errors Failures Skipped Success Rate Time
UserContextTest 5 0 0 0 100% 0.011
UnauthenticatedUserContextCallerTest 5 0 0 0 100% 0.02
AuthenticatedUserContextCallerTest 4 0 0 0 100% 0.059

org.bremersee.exception

Class Tests Errors Failures Skipped Success Rate Time
AccessTokenRetrieverAuthenticationExceptionTest 1 0 0 0 100% 0.003

org.bremersee.security.authentication

Class Tests Errors Failures Skipped Success Rate Time
AccessTokenCacheTest 4 0 0 0 100% 0.122
JsonPathJwtConverterTest 2 0 0 0 100% 0.161
AccessTokenCacheImplWthExternalExceptionCacheTest 1 0 0 0 100% 1.05
RestTemplateAccessTokenRetrieverTest 2 0 0 0 100% 0.737
AccessTokenCacheImplWthExternalCacheTest 1 0 0 0 100% 0.018
ClientCredentialsFlowPropertiesTest 7 0 0 0 100% 0.037
BasicAuthPropertiesTest 2 0 0 0 100% 0.033
JsonPathJwtAuthenticationDetailsTest 4 0 0 0 100% 0.058
AuthenticationDetailsTest 2 0 0 0 100% 0.041
AccessTokenCacheImplTest 1 0 0 0 100% 0.006
PasswordFlowPropertiesTest 9 0 0 0 100% 0.065

org.bremersee.security

Class Tests Errors Failures Skipped Success Rate Time
IpAddressMatcherTest 2 0 0 0 100% 0.004

Test Cases

[Summary] [Package List] [Test Cases]

AccessTokenCacheTest

isExpired 0.028
getExpirationTime 0.006
parse 0.001
builder 0.012

JsonPathJwtConverterTest

convert 0.058
testConvertRoles 0.102

AccessTokenRetrieverAuthenticationExceptionTest

status 0.001

AccessTokenCacheImplWthExternalExceptionCacheTest

putAndFindAccessToken 0.057

RestTemplateAccessTokenRetrieverTest

retrieveAccessTokenFails 0.732
retrieveAccessToken 0.001

AccessTokenCacheImplWthExternalCacheTest

putAndFindAccessToken 0.008

UserContextTest

withAuthentication 0.003
getGroups 0.001
getUserId 0.001
withLambda 0.002
getRoles 0.001

ClientCredentialsFlowPropertiesTest

getBasicAuthProperties 0.003
getClientId 0.025
getTokenEndpoint 0
from 0.001
getClientSecret 0.001
getAdditionalProperties 0.001
createBody 0

BasicAuthPropertiesTest

getPassword 0.028
getUsername 0.004

JsonPathJwtAuthenticationDetailsTest

getDefaultTimeZone 0
getDefaultLocale 0
getPreferredTimeZone 0.004
getPreferredLanguage 0.05

AuthenticationDetailsTest

getPreferredLanguageAndTimeZoneNullSafeAndExpectDefaults 0.038
getPreferredLanguageAndTimeZoneNullSafe 0.002

AccessTokenCacheImplTest

putAndFindAccessToken 0.002

PasswordFlowPropertiesTest

getBasicAuthProperties 0.014
getClientId 0.03
getPassword 0.001
getTokenEndpoint 0
from 0.007
getClientSecret 0
getAdditionalProperties 0
createBody 0.001
getUsername 0.001

UnauthenticatedUserContextCallerTest

responseWithOptionalUserContext 0.004
callWithOptionalUserContext 0.002
responseWithOptionalUserContextAndExpectNotFound 0.002
responseWithRequiredUserContext 0.003
callWithRequiredUserContext 0.004

AuthenticatedUserContextCallerTest

responseWithOptionalUserContext 0.04
callWithOptionalUserContext 0.004
responseWithRequiredUserContext 0.004
callWithRequiredUserContext 0.005

IpAddressMatcherTest

matchesIp 0.003
matchesNet 0.001