Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
278 0 0 0 100% 13.429

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.authc 35 0 0 0 100% 0.167
org.apache.shiro.session.mgt 13 0 0 0 100% 0.356
org.apache.shiro.codec 2 0 0 0 100% 0.021
org.apache.shiro.config 9 0 0 0 100% 0.2
org.apache.shiro.authc.pam 11 0 0 0 100% 0.06
org.apache.shiro.realm 24 0 0 0 100% 0.068
org.apache.shiro.util 9 0 0 0 100% 0
org.apache.shiro.concurrent 2 0 0 0 100% 0.009
org.apache.shiro.jndi 4 0 0 0 100% 0.003
org.apache.shiro.realm.jdbc 11 0 0 0 100% 0.299
org.apache.shiro.authz.aop 5 0 0 0 100% 0.036
org.apache.shiro.realm.activedirectory 1 0 0 0 100% 0.006
org.apache.shiro.mgt 22 0 0 0 100% 5.367
org.apache.shiro.authz 17 0 0 0 100% 0.003
org.apache.shiro.io 4 0 0 0 100% 0
org.apache.shiro.authc.credential 27 0 0 0 100% 3.047
org.apache.shiro.config.event 1 0 0 0 100% 0.029
org.apache.shiro.realm.text 12 0 0 0 100% 3.542
org.apache.shiro.test 2 0 0 0 100% 0.003
org.apache.shiro.aop 3 0 0 0 100% 0.107
org.apache.shiro.realm.ldap 43 0 0 0 100% 0.089
org.apache.shiro.authz.permission 16 0 0 0 100% 0.007
org.apache.shiro.subject 5 0 0 0 100% 0.01

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

org.apache.shiro.authc

Class Tests Errors Failures Skipped Success Rate Time
AbstractAuthenticatorTest 8 0 0 0 100% 0.145
ConcurrentAccessExceptionTest 4 0 0 0 100% 0.014
ExcessiveAttemptsExceptionTest 4 0 0 0 100% 0.001
ExpiredCredentialsExceptionTest 4 0 0 0 100% 0.002
IncorrectCredentialsExceptionTest 4 0 0 0 100% 0.002
LockedAccountExceptionTest 4 0 0 0 100% 0.002
SimpleAuthenticationInfoTest 3 0 0 0 100% 0
UnknownAccountExceptionTest 4 0 0 0 100% 0.001

org.apache.shiro.session.mgt

Class Tests Errors Failures Skipped Success Rate Time
AbstractValidatingSessionManagerTest 2 0 0 0 100% 0.005
DefaultSessionManagerTest 7 0 0 0 100% 0.191
DelegatingSessionTest 1 0 0 0 100% 0.153
SimpleSessionTest 3 0 0 0 100% 0.007

org.apache.shiro.codec

Class Tests Errors Failures Skipped Success Rate Time
H64Test 2 0 0 0 100% 0.021

org.apache.shiro.config

Class Tests Errors Failures Skipped Success Rate Time
IniSecurityManagerFactoryTest 9 0 0 0 100% 0.2

org.apache.shiro.authc.pam

Class Tests Errors Failures Skipped Success Rate Time
AllSuccessfulStrategyTest 3 0 0 0 100% 0.005
ModularRealmAuthenticatorTest 8 0 0 0 100% 0.055

org.apache.shiro.realm

Class Tests Errors Failures Skipped Success Rate Time
AuthenticatingRealmIntegrationTest 1 0 0 0 100% 0.016
AuthenticatingRealmTest 13 0 0 0 100% 0.039
AuthorizingRealmTest 4 0 0 0 100% 0.004
CachingRealmTest 6 0 0 0 100% 0.009

org.apache.shiro.util

Class Tests Errors Failures Skipped Success Rate Time
RegExPatternMatcherTest 1 0 0 0 100% 0
StringUtilsTest 8 0 0 0 100% 0

org.apache.shiro.concurrent

Class Tests Errors Failures Skipped Success Rate Time
SubjectAwareExecutorServiceTest 1 0 0 0 100% 0.007
SubjectAwareExecutorTest 1 0 0 0 100% 0.002

org.apache.shiro.jndi

Class Tests Errors Failures Skipped Success Rate Time
JndiObjectFactoryTest 4 0 0 0 100% 0.003

org.apache.shiro.realm.jdbc

Class Tests Errors Failures Skipped Success Rate Time
JDBCRealmTest 11 0 0 0 100% 0.299

org.apache.shiro.authz.aop

Class Tests Errors Failures Skipped Success Rate Time
PermissionAnnotationHandlerTest 2 0 0 0 100% 0.027
RoleAnnotationHandlerTest 3 0 0 0 100% 0.009

org.apache.shiro.realm.activedirectory

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

org.apache.shiro.mgt

Class Tests Errors Failures Skipped Success Rate Time
AbstractRememberMeManagerTest 1 0 0 0 100% 5.147
DefaultSecurityManagerTest 3 0 0 0 100% 0.171
DefaultSubjectDAOTest 17 0 0 0 100% 0.046
VMSingletonDefaultSecurityManagerTest 1 0 0 0 100% 0.003

org.apache.shiro.authz

Class Tests Errors Failures Skipped Success Rate Time
AuthorizationExceptionTest 4 0 0 0 100% 0
HostUnauthorizedExceptionTest 4 0 0 0 100% 0.002
ModularRealmAuthorizerTest 1 0 0 0 100% 0
UnauthenticatedExceptionTest 4 0 0 0 100% 0.001
UnauthorizedExceptionTest 4 0 0 0 100% 0

org.apache.shiro.io

Class Tests Errors Failures Skipped Success Rate Time
SerializationExceptionTest 4 0 0 0 100% 0

org.apache.shiro.authc.credential

Class Tests Errors Failures Skipped Success Rate Time
AllowAllCredentialsMatcherTest 1 0 0 0 100% 0.001
DefaultPasswordServiceTest 11 0 0 0 100% 3.015
HashedCredentialsMatcherTest 3 0 0 0 100% 0.003
Md2CredentialsMatcherTest 1 0 0 0 100% 0.002
Md5CredentialsMatcherTest 1 0 0 0 100% 0.001
PasswordMatcherTest 6 0 0 0 100% 0.022
Sha1CredentialsMatcherTest 1 0 0 0 100% 0.001
Sha256CredentialsMatcherTest 1 0 0 0 100% 0.001
Sha384CredentialsMatcherTest 1 0 0 0 100% 0.001
Sha512CredentialsMatcherTest 1 0 0 0 100% 0

org.apache.shiro.config.event

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

org.apache.shiro.realm.text

Class Tests Errors Failures Skipped Success Rate Time
IniRealmTest 5 0 0 0 100% 0.003
TextConfigurationRealmTest 7 0 0 0 100% 3.539

org.apache.shiro.test

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

org.apache.shiro.aop

Class Tests Errors Failures Skipped Success Rate Time
AnnotationResolverTest 3 0 0 0 100% 0.107

org.apache.shiro.realm.ldap

Class Tests Errors Failures Skipped Success Rate Time
DefaultLdapContextFactoryTest 6 0 0 0 100% 0.05
DefaultLdapRealmTest 11 0 0 0 100% 0.011
JndiLdapContextFactoryTest 15 0 0 0 100% 0.024
JndiLdapRealmTest 11 0 0 0 100% 0.004

org.apache.shiro.authz.permission

Class Tests Errors Failures Skipped Success Rate Time
AllPermissionTest 2 0 0 0 100% 0
DomainPermissionTest 5 0 0 0 100% 0.002
WildcardPermissionTest 9 0 0 0 100% 0.005

org.apache.shiro.subject

Class Tests Errors Failures Skipped Success Rate Time
DelegatingSubjectTest 4 0 0 0 100% 0.01
SimplePrincipalCollectionTest 1 0 0 0 100% 0

Test Cases

[Summary] [Package List] [Test Cases]

AnnotationResolverTest

testAnnotationFoundFromClass 0.041
testNullMethodInvocation 0.003
testAnnotationFoundFromMethod 0.002

AbstractAuthenticatorTest

throwAuthenticationExceptionIfDoAuthenticateReturnsNull 0.127
newAbstractAuthenticatorSecurityManagerConstructor 0.001
notifySuccessAfterDoAuthenticate 0.005
notifyFailureAfterDoAuthenticateThrowsNonAuthenticationException 0.004
authenticateWithNullArgument 0
logExceptionAfterDoAuthenticateThrowsNonAuthenticationException 0.002
nonNullAuthenticationInfoAfterAuthenticate 0
notifyFailureAfterDoAuthenticateThrowsAuthenticationException 0.001

ConcurrentAccessExceptionTest

testMsgConstructor 0.007
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

AllowAllCredentialsMatcherTest

testBasic 0

DefaultPasswordServiceTest

testPasswordsMatchWithNullOrEmpty 0.142
testStringComparisonWhenNotUsingAParsableHashFormat 0.449
testTurkishLocal 0.432
testEncryptPasswordWithInvalidMatch 0.43
testEncryptPasswordDefault 0.43
testEncryptPasswordWithNullArgument 0.001
testCustomHashFormatFactory 0.037
testHashPasswordWithNullArgument 0.001
testCustomHashService 0.007
testHashFormatWarned 0.224
testBackwardsCompatibility 0.547

HashedCredentialsMatcherTest

testBackwardsCompatibleSaltedAuthenticationInfo 0.002
testBackwardsCompatibleUnsaltedAuthenticationInfo 0.001
testSaltedAuthenticationInfo 0

Md2CredentialsMatcherTest

testBasic 0.001

Md5CredentialsMatcherTest

testBasic 0

PasswordMatcherTest

testMissingPasswordService 0.004
testUnexpectedSavedCredentialsType 0.005
testHashComparisonWithoutHashedPasswordService 0.002
testHashComparison 0.002
testStringPasswordComparison 0.003
testCharArrayComparison 0.004

Sha1CredentialsMatcherTest

testBasic 0.001

Sha256CredentialsMatcherTest

testBasic 0.001

Sha384CredentialsMatcherTest

testBasic 0.001

Sha512CredentialsMatcherTest

testBasic 0

ExcessiveAttemptsExceptionTest

testMsgConstructor 0.001
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

ExpiredCredentialsExceptionTest

testMsgConstructor 0
testNoArgConstructor 0.001
testMsgCauseConstructor 0
testCauseConstructor 0

IncorrectCredentialsExceptionTest

testMsgConstructor 0.001
testNoArgConstructor 0
testMsgCauseConstructor 0.001
testCauseConstructor 0

LockedAccountExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

AllSuccessfulStrategyTest

beforeAttemptRealmDoesntSupportToken 0.003
beforeAttemptSupportingToken 0.001
beforeAllAttempts 0

ModularRealmAuthenticatorTest

testSingleRealmAuthenticationWithUnsupportedToken 0.01
testSingleRealmAuthenticationWithNullAuthenticationInfo 0.001
testDoAuthenticateNoRealms 0.001
testNewInstance 0.006
testSingleRealmAuthenticationSuccess 0
testMultiRealmAuthenticationSuccess 0.008
testMultiRealmAuthenticationWithAuthenticationException 0.011
testOnLogout 0.006

SimpleAuthenticationInfoTest

testMergeWithAggregateNullCredentials 0
testMergeWithImmutablePrincipalCollection 0
testMergeWithEmptyInstances 0

UnknownAccountExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0.001
testCauseConstructor 0

PermissionAnnotationHandlerTest

testGuestMultiplePermissionAssertion 0.025
testGuestSinglePermissionAssertion 0.002

RoleAnnotationHandlerTest

testOneOfTheRolesRequired 0.005
testGuestMultipleRolesAssertion 0.002
testGuestSingleRoleAssertion 0.002

AuthorizationExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

HostUnauthorizedExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

ModularRealmAuthorizerTest

testSettingOfRolePermissionResolver 0

AllPermissionTest

testNonNullArgument 0
testNullArgument 0

DomainPermissionTest

testActionsTargetsConstructorWithMultipleActionsAndTargets 0.001
testActionsConstructorWithMultipleActions 0
testActionsTargetsConstructorWithSingleActionAndTarget 0
testActionsConstructorWithSingleAction 0
testDefaultConstructor 0

WildcardPermissionTest

testWildcards 0
testBlank 0
testEmpty 0
testLists 0
testNamed 0
testNull 0
testToString 0.001
testListDifferentOrder 0
testOnlyDelimiters 0

UnauthenticatedExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0.001

UnauthorizedExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

H64Test

testDefault 0.019
testNothing 0

SubjectAwareExecutorServiceTest

testSubmitRunnable 0.007

SubjectAwareExecutorTest

testExecute 0.002

LoggingBeanEventListenerTest

testMisnamedBeanEventClass 0.01

IniSecurityManagerFactoryTest

testGetInstanceWithResourcePath 0.032
testGetInstanceWithAutomaticallyCreatedIniRealm 0.04
testImplicitIniRealmWithConfiguredPermissionResolver 0.06
testImplicitIniRealmWithAdditionalRealmConfiguration 0.021
testGetInstanceWithConfiguredRealm 0.009
testCacheManagerConfigOrderOfOperations 0.03
testGetInstanceWithEmptyIni 0.002
testGetInstanceWithoutIni 0.001
testGetInstanceWithSimpleIni 0.002

SerializationExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

JndiObjectFactoryTest

testJndiLookupFailsWithType 0.002
testGetInstanceWithType 0
testGetInstanceNoType 0
testJndiLookupFailsNoType 0

AbstractRememberMeManagerTest

testGetRememberedPrincipalsWithEmptySerializedBytes 5.147

DefaultSecurityManagerTest

testDefaultConfig 0.005
testSubjectReuseAfterLogout 0.007
testAutoCreateSessionAfterInvalidation 0.158

DefaultSubjectDAOTest

testMergePrincipalsWithDelegatingSubject 0.019
testMergeAuthcWithSubjectAuthcButWithDifferentSessionAuthc 0.006
testIsSessionStorageEnabledDefault 0
testMergePrincipalsWithSubjectPrincipalsButWithoutSession 0.001
testMergeAuthcWithSubjectAuthcButWithoutSession 0.001
testMergePrincipalsWithSubjectPrincipalsButWithDifferentSessionPrincipals 0.001
testDeleteWithoutSession 0.001
testMergePrincipalsWithoutSubjectPrincipalsOrSessionPrincipals 0.001
testMergeAuthcWithoutSubjectAuthcOrSessionAuthc 0
testSaveWithoutSessionOrPrincipalsOrAuthentication 0.002
testDeleteWithSession 0.001
testSaveWhenSessionStorageIsDisabled 0.001
testIsSessionStorageEnabledDefaultSubject 0.001
testMergePrincipalsWithoutSubjectPrincipalsButWithSessionPrincipals 0.001
testMergeAuthcWithSubjectAuthcButWithoutSessionAuthc 0.001
testMergeAuthcWithoutSubjectAuthcButWithSessionAuthc 0.001
testCustomSessionStorageEvaluator 0.003

VMSingletonDefaultSecurityManagerTest

testVMSingleton 0.003

ActiveDirectoryRealmTest

testDefaultConfig 0.006

AuthenticatingRealmIntegrationTest

testShiro354 0.015

AuthenticatingRealmTest

testGetAuthenticationInfo 0.006
testAuthenticationCachingEnabledWithCacheHit 0.009
testAssertCredentialsMatchFailure 0.004
testLogoutWithAuthenticationCachingEnabled 0.006
testSupports 0.001
testAssertCredentialsMatchWithNullCredentialsMatcher 0.001
testAuthenticationCachingEnabledWithCacheMiss 0.004
testGetAuthenticationInfoWithNullReturnValue 0.001
testSupportsWithCustomAuthenticationTokenClass 0.001
testNewInstanceWithCredentialsMatcher 0.001
testSetName 0.001
testNewInstanceWithCacheManager 0.001
testSetCache 0

AuthorizingRealmTest

testDefaultConfig 0.001
testRealmWithRolePermissionResolver 0.001
testNullAuthzInfo 0.002
testCreateAccountOverride 0

CachingRealmTest

testCachingEnabled 0.004
testGetAvailablePrincipalWithRealmPrincipals 0
testGetAvailablePrincipalWithoutRealmPrincipals 0.001
testSetName 0.001
testNewInstanceWithCacheManager 0
testOnLogout 0.001

JDBCRealmTest

testPermissionPresent 0.229
testPermissionNotPresent 0.008
testExternalSuccess 0.009
testRoleNotPresent 0.009
testUnSaltedSuccess 0.006
testRolePresent 0.008
testSaltColumnWrongPassword 0.004
testUnSaltedWrongPassword 0.005
testSaltColumnSuccess 0.005
testUnSaltedMultipleRows 0.005
testExternalWrongPassword 0.005

DefaultLdapContextFactoryTest

testEmptyCharArrayCredentials 0
testEmptyNullCredentials 0
testEmptyByteArrayCredentials 0
testEmptyStringCredentials 0
testGetLdapContextWithoutUrl 0
testGetLdapContext 0.049

DefaultLdapRealmTest

testDefaultInstance 0.002
testGetAuthenticationInfoNamingException 0.002
testGetAuthenticationInfoNamingAuthenticationException 0.001
testUserDnTemplate 0
testSetUserDnTemplateWithoutToken 0
testGetUserDnWithOutPrefixAndSuffix 0
testSetUserDnTemplateNull 0.001
testGetAuthenticationInfoNonSimpleToken 0.003
testSetUserDnTemplateEmpty 0
testGetUserDnNullArgument 0
testUserDnTemplateSubstitution 0

JndiLdapContextFactoryTest

testEmptyCharArrayCredentials 0.001
testCustomEnvironment 0
testGetSystemLdapContextPoolingDisabled 0
testEmptyNullCredentials 0
testEmptyByteArrayCredentials 0.001
testGetSystemLdapContext 0
testAuthenticationMechanism 0
testEmptyStringCredentials 0
testGetLdapContextWithoutUrl 0.001
testReferral 0
testGetLdapContext 0.02
testGetLdapContextStringArguments 0
testSetEnvironmentPropertyNull 0
testGetContextFactoryClassName 0
testGetLdapContextDefault 0.001

JndiLdapRealmTest

testGetUserDnWithOutPrefixAndSuffix 0
testDefaultInstance 0
testGetAuthenticationInfoNamingException 0.001
testGetAuthenticationInfoNamingAuthenticationException 0
testUserDnTemplate 0
testSetUserDnTemplateWithoutToken 0
testSetUserDnTemplateNull 0
testGetAuthenticationInfoNonSimpleToken 0.001
testSetUserDnTemplateEmpty 0
testGetUserDnNullArgument 0
testUserDnTemplateSubstitution 0

IniRealmTest

testInitWithoutIniResource 0
testIniFileWithoutUsers 0.001
testIniFile 0.002
testNullIni 0
testEmptyIni 0

TextConfigurationRealmTest

testRoleAndUserAccount 0.506
testProcessRoleDefinitions 0.503
testHasRole 0.506
testCheckPermission 0.506
testCheckRole 0.506
testIsPermitted 0.505
testProcessUserDefinitions 0.507

AbstractValidatingSessionManagerTest

testValidateSessions 0.002
testNoMemoryLeakOnInvalidSessions 0.003

DefaultSessionManagerTest

testSessionListenerStartNotification 0.001
testSessionListenerExpiredNotification 0.157
testSessionListenerStopNotification 0.002
testEnablingOfCustomSessionValidationScheduler 0
testGlobalTimeout 0.001
testSessionDeleteOnExpiration 0.027
testSessionListenerStopNotificationWithReadAttribute 0.003

DelegatingSessionTest

testTimeout 0.152

SimpleSessionTest

serializeExpired 0.006
testDefaultSerialization 0.001
serializeHost 0

DelegatingSubjectTest

testExecuteCallable 0.001
testSessionStopThenStart 0.002
testRunAs 0.006
testExecuteRunnable 0.001

SimplePrincipalCollectionTest

multiplePrincipalsTest 0

ExampleShiroIntegrationTest

testSimple 0.001

ExampleShiroUnitTest

testSimple 0

RegExPatternMatcherTest

testSimplePattern 0

StringUtilsTest

splitWithNullInput 0
splitWithQuotedCommasAndSpacesAndDifferentQuoteChars 0
splitWithQuotedCommasAndSpacesAndEscapedQuotes 0
splitWithQuotedCommasAndSpaces 0
splitWithQuotedCommasAndSpacesAndDifferentQuoteCharsWhileRetainingQuotes 0
splitWithCommasAndSpaces 0
splitTestWithQuotedCommas 0
splitWithCommas 0