Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
155 0 0 0 100% 2.805

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.apache.shiro.web.servlet 23 0 0 0 100% 0.108
org.apache.shiro.web.filter.mgt 35 0 0 0 100% 0.012
org.apache.shiro.web.env 6 0 0 0 100% 0.864
org.apache.shiro.web.filter.session 1 0 0 0 100% 0.001
org.apache.shiro.web.filter.authc 25 0 0 0 100% 0.131
org.apache.shiro.web.util 3 0 0 0 100% 0.025
org.apache.shiro.web.mgt 20 0 0 0 100% 0.476
org.apache.shiro.web.config 12 0 0 0 100% 0.066
org.apache.shiro.web.filter 5 0 0 0 100% 0.001
org.apache.shiro.web.session 1 0 0 0 100% 0
org.apache.shiro.web.filter.authz 7 0 0 0 100% 0.561
org.apache.shiro.web.session.mgt 17 0 0 0 100% 0.56

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

org.apache.shiro.web.servlet

Class Tests Errors Failures Skipped Success Rate Time
ShiroFilterTest 1 0 0 0 100% 0.003
ShiroHttpServletResponseTest 6 0 0 0 100% 0.058
IniShiroFilterTest 5 0 0 0 100% 0.028
SimpleCookieTest 6 0 0 0 100% 0.008
ShiroHttpServletRequestTest 1 0 0 0 100% 0.001
AbstractShiroFilterTest 2 0 0 0 100% 0.009
OncePerRequestFilterTest 2 0 0 0 100% 0.001

org.apache.shiro.web.filter.mgt

Class Tests Errors Failures Skipped Success Rate Time
SimpleNamedFilterListTest 5 0 0 0 100% 0.001
DefaultFilterChainManagerTest 19 0 0 0 100% 0.008
PathMatchingFilterChainResolverTest 11 0 0 0 100% 0.003

org.apache.shiro.web.env

Class Tests Errors Failures Skipped Success Rate Time
IniWebEnvironmentTest 2 0 0 0 100% 0.056
EnvironmentLoaderServiceTest 3 0 0 0 100% 0.78
EnvironmentLoaderTest 1 0 0 0 100% 0.028

org.apache.shiro.web.filter.session

Class Tests Errors Failures Skipped Success Rate Time
NoSessionCreationFilterTest 1 0 0 0 100% 0.001

org.apache.shiro.web.filter.authc

Class Tests Errors Failures Skipped Success Rate Time
LogoutFilterTest 3 0 0 0 100% 0.021
AnonymousFilterTest 1 0 0 0 100% 0
BearerHttpFilterAuthenticationTest 9 0 0 0 100% 0.055
BasicHttpFilterAuthenticationTest 12 0 0 0 100% 0.055

org.apache.shiro.web.util

Class Tests Errors Failures Skipped Success Rate Time
WebUtilsTest 3 0 0 0 100% 0.025

org.apache.shiro.web.mgt

Class Tests Errors Failures Skipped Success Rate Time
DefaultWebSecurityManagerTest 7 0 0 0 100% 0.37
CookieRememberMeManagerTest 6 0 0 0 100% 0.084
NonIniWebSecurityManagerTest 1 0 0 0 100% 0.001
DefaultWebSessionStorageEvaluatorTest 6 0 0 0 100% 0.021

org.apache.shiro.web.config

Class Tests Errors Failures Skipped Success Rate Time
IniFilterChainResolverFactoryTest 11 0 0 0 100% 0.063
WebIniSecurityManagerFactoryTest 1 0 0 0 100% 0.003

org.apache.shiro.web.filter

Class Tests Errors Failures Skipped Success Rate Time
PathMatchingFilterTest 5 0 0 0 100% 0.001

org.apache.shiro.web.session

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

org.apache.shiro.web.filter.authz

Class Tests Errors Failures Skipped Success Rate Time
PortFilterTest 2 0 0 0 100% 0
HttpMethodPermissionFilterTest 1 0 0 0 100% 0.001
AuthorizationFilterTest 2 0 0 0 100% 0.004
HostFilterTest 2 0 0 0 100% 0.556

org.apache.shiro.web.session.mgt

Class Tests Errors Failures Skipped Success Rate Time
ServletContainerSessionManagerTest 6 0 0 0 100% 0.49
DefaultWebSessionManagerTest 11 0 0 0 100% 0.07

Test Cases

[Summary] [Package List] [Test Cases]

LogoutFilterTest

testLogoutViaGetMethodWhenPostOnlyEnabled 0.011
testLogoutViaGetMethod 0.006
testLogoutViaPostMethodWhenPostOnlyEnabled 0.004

ShiroFilterTest

testInit 0.003

ServletContainerSessionManagerTest

testGetSessionWithExistingRequestSession 0.206
testStartWithContextHostValue 0.006
testStartWithNonWebSessionContext 0.002
testGetSessionWithoutExistingRequestSession 0.001
testGetSessionWithNonWebSessionKey 0
testStartWithoutContextHostValue 0.001

PortFilterTest

testConfiguredPort 0
testDefault 0

AnonymousFilterTest

test 0

DefaultWebSecurityManagerTest

testGetSubjectByRequestSessionId 0.017
testLogin 0.002
testGetSubjectByRequestResponsePair 0.003
testSessionTimeout 0.209
checkSessionManagerDeterminesContainerSessionMode 0.008
testBuildNonWebSubjectWithDefaultServletContainerSessionManager 0.125
shiroSessionModeInit 0.003

PathMatchingFilterTest

testEnabled 0
testPathMatchEEnabled 0
testPathMatchEndWithMultiUrlSeparatorEnabled 0
testDisabledBasedOnPath 0
testPathMatchEndWithUrlSeparatorEnabled 0

ShiroHttpServletResponseTest

testEncodeURLNoSessionId 0.051
testEncodeURLSessionIdInURL 0.002
testEncodeURLSessionIdInWhenRewriteInvalid 0.001
testEncodeURLSessionIdInCookie 0
testEncodeURLSessionIdInWhenRewriteDisabled 0
testEncodeURLSessionIdInWhenRewriteInvalidAndNull 0.001

IniShiroFilterTest

testResourceConfig 0.007
testResourceConfigWithoutResource 0.015
testSimpleConfig 0.001
testDefaultWebInfConfig 0.002
testDefaultClasspathConfig 0.002

BearerHttpFilterAuthenticationTest

httpMethodDoesNotRequireAuthentication 0.007
createTokenNoValue 0.02
permissiveEnabledTest 0.001
createTokenNoAuthorizationHeader 0.001
createTokenJustSpaces 0.001
permissiveEnabledWithLoginTest 0.018
createTokenWithValue 0
httpMethodRequiresAuthentication 0.002
httpMethodRequiresAuthenticationWithPermissive 0.002

CookieRememberMeManagerTest

getRememberedSerializedIdentityReturnsNullForDeletedCookie 0.044
getRememberedPrincipalsDecryptionError 0.013
getRememberedPrincipals 0.012
onSuccessfulLogin 0.013
getRememberedPrincipalsNoMoreDefaultCipher 0.002
onLogout 0

IniWebEnvironmentTest

testFrameworkConfigAdded 0.049
testObjectsAfterSecurityManagerCreation 0.005

EnvironmentLoaderServiceTest

singleServiceTest 0.44
multipleServiceTest 0.03
loadFromInitParamTest 0.015

WebUtilsTest

testGetContextPath 0.013
testGetPathWithinApplication 0.008
testGetContextPathIncludes 0.002

SimpleCookieTest

testRemoveValue 0.001
testEmptyContextPath 0
testNullContextPath 0
testReadValuePrefixPath 0
testReadValueInvalidPrefixPath 0.001
testReadValueInvalidPath 0

IniFilterChainResolverFactoryTest

testGetFiltersWithoutSectionWithDefaults 0.025
testGetFiltersWithSectionWithoutDefaults 0.01
testGetFilters 0
testGetFiltersWithSectionAndDefaults 0.005
testNewInstanceWithFilterConfig 0.015
testCreateChainsWithNullUrlsSection 0
testGetInstanceNoIni 0.002
testNewInstance 0
testNewInstanceWithNonFilter 0.002
testNewInstanceWithIni 0.001
testGetFiltersWithNullOrEmptySection 0

HttpMethodPermissionFilterTest

testPermisisonMapping 0

ShiroHttpServletRequestTest

testRegetSession 0

HttpServletSessionTest

testLongTimeout 0

NonIniWebSecurityManagerTest

testLoginNonWebSubject 0.001

WebIniSecurityManagerFactoryTest

testDefaultFiltersPresent 0.002

SimpleNamedFilterListTest

testNewInstanceBackingList 0
testNewInstanceNameless 0
testListMethods 0
testNewInstance 0
testNewInstanceNullBackingList 0

AbstractShiroFilterTest

testInit 0.005
testInitWithStaticReference 0.002

DefaultWebSessionManagerTest

testOnStart 0.033
testSessionIDRequestPathParameterWithoutARequestURI 0.001
testGetSessionIdFromRequestUriPathSegmentParam 0.019
testGetSessionIdWithSessionIdCookieDisabled 0.001
testGetSessionIdWithSessionIdCookieDisabledAndLowercaseRequestParam 0.005
testSessionIDRequestPathParameterWithoutPathParameters 0.001
testOnStartWithSessionIdCookieDisabled 0
testSessionIDRequestPathParameterWithoutJSESSIONID 0.001
testGetSessionIdWithSessionIdCookieEnabled 0.001
testSessionIDRequestPathParameter 0.002
testSessionIDRequestPathParameterWithNonHttpRequest 0.002

AuthorizationFilterTest

testUserOnAccessDeniedWithResponseError 0.001
testUserOnAccessDeniedWithRedirect 0.003

NoSessionCreationFilterTest

testDefault 0

OncePerRequestFilterTest

testEnabled 0
testDisabled 0

DefaultFilterChainManagerTest

testBeanMethods 0
testToNameConfigPairWithIndividualNestedQuotesInBrackets 0
testProxy 0
testCreateChain 0
testFilterChainConfigWithNestedCommas 0
testToNameConfigPairWithNestedQuotesInBrackets 0
testAddFilterNoInit 0
testCreateChainWithQuotedInstanceConfig 0
testAddToChainNotPathProcessor 0
testFilterChainConfigWithNestedQuotedCommas 0.001
testAddToChain 0.001
testToNameConfigPairNoBrackets 0
testAddFilter 0.002
testNewInstanceWithFilterConfig 0.002
testToNameConfigPairWithPopulatedBrackets 0
testToNameConfigPairWithEmptyBrackets 0.001
testProxyNoChain 0.001
testNewInstanceDefaultFilters 0
testAddFilterNoFilterConfig 0

HostFilterTest

testPrivateClassB 0.527
testPrivateClassC 0.029

PathMatchingFilterChainResolverTest

testPathTraversalWithDotDot 0
testGetChain 0
testGetChainEndWithUrlSeparator 0
testGetChainEndWithMultiUrlSeparator 0.001
testGetChainsWithMatch 0
testGetChainsWithoutChains 0
testGetChainsWithoutMatch 0.001
testPathTraversalWithDot 0
testNewInstanceWithFilterConfig 0.001
testNewInstance 0
testSetters 0

BasicHttpFilterAuthenticationTest

httpMethodDoesNotRequireAuthentication 0.055
permissiveEnabledTest 0
createTokenNoAuthorizationHeader 0
allHttpMethodsRequireAuthenticationIfNoneConfigured 0
allHttpMethodsRequireAuthenticationIfNullConfig 0
createTokenNoUsername 0
permissiveEnabledWithLoginTest 0
httpMethodRequiresAuthentication 0
httpMethodsAreCaseInsensitive 0
createTokenColonInPassword 0
createTokenNoPassword 0
httpMethodRequiresAuthenticationWithPermissive 0

EnvironmentLoaderTest

testCustomizeAndFinalizeEnvironment 0.026

DefaultWebSessionStorageEvaluatorTest

testWebSubjectWithoutSessionAndGenerallyEnabledWithNonBooleanRequestAttribute 0.014
testWebSubjectWithoutSessionAndGenerallyEnabledButRequestDisabled 0.001
testWithoutSessionAndGenerallyDisabled 0.004
testWebSubjectWithoutSessionAndGenerallyEnabled 0.001
testWithoutSessionAndNonWebSubject 0
testWithSession 0.001