Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
297 0 0 0 100% 24.559

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.session.mgt 17 0 0 0 100% 17.396
org.apache.shiro.authc 35 0 0 0 100% 0.174
org.apache.shiro.codec 1 0 0 0 100% 0.02
org.apache.shiro.config 9 0 0 0 100% 0.049
org.apache.shiro.realm 25 0 0 0 100% 0.109
org.apache.shiro.util 9 0 0 0 100% 0
org.apache.shiro.authc.pam 18 0 0 0 100% 0.033
org.apache.shiro.concurrent 2 0 0 0 100% 0.002
org.apache.shiro.jndi 4 0 0 0 100% 0
org.apache.shiro.realm.jdbc 13 0 0 0 100% 0.476
org.apache.shiro.realm.activedirectory 1 0 0 0 100% 0.002
org.apache.shiro.authz.aop 5 0 0 0 100% 0.002
org.apache.shiro.mgt 23 0 0 0 100% 0.218
org.apache.shiro.authz 17 0 0 0 100% 0.001
org.apache.shiro.io 4 0 0 0 100% 0.001
org.apache.shiro.authc.credential 27 0 0 0 100% 2.104
org.apache.shiro.config.event 1 0 0 0 100% 0.007
org.apache.shiro.realm.text 12 0 0 0 100% 3.552
org.apache.shiro.test 2 0 0 0 100% 0.002
org.apache.shiro.aop 3 0 0 0 100% 0.003
org.apache.shiro.realm.ldap 43 0 0 0 100% 0.398
org.apache.shiro.authz.permission 21 0 0 0 100% 0.002
org.apache.shiro.subject 5 0 0 0 100% 0.008

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

org.apache.shiro.session.mgt

Class Tests Errors Failures Skipped Success Rate Time
SimpleSessionTest 3 0 0 0 100% 0.017
DefaultSessionManagerTest 7 0 0 0 100% 0.208
ExecutorServiceSessionValidationSchedulerTest 4 0 0 0 100% 17.011
DelegatingSessionTest 1 0 0 0 100% 0.155
AbstractValidatingSessionManagerTest 2 0 0 0 100% 0.005

org.apache.shiro.authc

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

org.apache.shiro.codec

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

org.apache.shiro.config

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

org.apache.shiro.realm

Class Tests Errors Failures Skipped Success Rate Time
AuthenticatingRealmTest 13 0 0 0 100% 0.047
AuthenticatingRealmIntegrationTest 1 0 0 0 100% 0.042
CachingRealmTest 6 0 0 0 100% 0.016
AuthorizingRealmTest 5 0 0 0 100% 0.004

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.authc.pam

Class Tests Errors Failures Skipped Success Rate Time
ModularRealmAuthenticatorTest 8 0 0 0 100% 0.03
AllSuccessfulStrategyTest 3 0 0 0 100% 0.001
FirstSuccessfulStrategyTest 7 0 0 0 100% 0.002

org.apache.shiro.concurrent

Class Tests Errors Failures Skipped Success Rate Time
SubjectAwareExecutorTest 1 0 0 0 100% 0
SubjectAwareExecutorServiceTest 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

org.apache.shiro.realm.jdbc

Class Tests Errors Failures Skipped Success Rate Time
JDBCRealmTest 13 0 0 0 100% 0.476

org.apache.shiro.realm.activedirectory

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

org.apache.shiro.authz.aop

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

org.apache.shiro.mgt

Class Tests Errors Failures Skipped Success Rate Time
DefaultSubjectDAOTest 17 0 0 0 100% 0.033
VMSingletonDefaultSecurityManagerTest 1 0 0 0 100% 0.001
AbstractRememberMeManagerTest 1 0 0 0 100% 0.029
DefaultSecurityManagerTest 4 0 0 0 100% 0.155

org.apache.shiro.authz

Class Tests Errors Failures Skipped Success Rate Time
UnauthenticatedExceptionTest 4 0 0 0 100% 0
AuthorizationExceptionTest 4 0 0 0 100% 0
ModularRealmAuthorizerTest 1 0 0 0 100% 0.001
HostUnauthorizedExceptionTest 4 0 0 0 100% 0
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.001

org.apache.shiro.authc.credential

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

org.apache.shiro.config.event

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

org.apache.shiro.realm.text

Class Tests Errors Failures Skipped Success Rate Time
TextConfigurationRealmTest 7 0 0 0 100% 3.545
IniRealmTest 5 0 0 0 100% 0.007

org.apache.shiro.test

Class Tests Errors Failures Skipped Success Rate Time
ExampleShiroIntegrationTest 1 0 0 0 100% 0.002
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.003

org.apache.shiro.realm.ldap

Class Tests Errors Failures Skipped Success Rate Time
JndiLdapContextFactoryTest 15 0 0 0 100% 0.059
JndiLdapRealmTest 11 0 0 0 100% 0.004
DefaultLdapContextFactoryTest 6 0 0 0 100% 0.333
DefaultLdapRealmTest 11 0 0 0 100% 0.002

org.apache.shiro.authz.permission

Class Tests Errors Failures Skipped Success Rate Time
WildcardPermissionResolverTest 4 0 0 0 100% 0
DomainPermissionTest 5 0 0 0 100% 0.001
WildcardPermissionTest 10 0 0 0 100% 0.001
AllPermissionTest 2 0 0 0 100% 0

org.apache.shiro.subject

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

Test Cases

[Summary] [Package List] [Test Cases]

DefaultSubjectDAOTest

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

ActiveDirectoryRealmTest

testDefaultConfig 0.001

SimpleSessionTest

serializeExpired 0.013
testDefaultSerialization 0.002
serializeHost 0.001

Md2CredentialsMatcherTest

testBasic 0

UnauthenticatedExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

DefaultSessionManagerTest

testSessionListenerStartNotification 0.005
testSessionListenerExpiredNotification 0.161
testSessionListenerStopNotification 0.007
testEnablingOfCustomSessionValidationScheduler 0.003
testGlobalTimeout 0.004
testSessionDeleteOnExpiration 0.027
testSessionListenerStopNotificationWithReadAttribute 0.001

H64Test

testDefault 0.02

UnknownAccountExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

IniSecurityManagerFactoryTest

testGetInstanceWithResourcePath 0.001
testGetInstanceWithAutomaticallyCreatedIniRealm 0.008
testImplicitIniRealmWithConfiguredPermissionResolver 0.007
testImplicitIniRealmWithAdditionalRealmConfiguration 0.011
testGetInstanceWithConfiguredRealm 0.006
testCacheManagerConfigOrderOfOperations 0.012
testGetInstanceWithEmptyIni 0.001
testGetInstanceWithoutIni 0.001
testGetInstanceWithSimpleIni 0.001

JndiLdapContextFactoryTest

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

LoggingBeanEventListenerTest

testMisnamedBeanEventClass 0.007

ConcurrentAccessExceptionTest

testMsgConstructor 0.091
testNoArgConstructor 0.001
testMsgCauseConstructor 0
testCauseConstructor 0

VMSingletonDefaultSecurityManagerTest

testVMSingleton 0.001

AbstractRememberMeManagerTest

testGetRememberedPrincipalsWithEmptySerializedBytes 0.029

AuthenticatingRealmTest

testGetAuthenticationInfo 0.013
testAuthenticationCachingEnabledWithCacheHit 0.011
testAssertCredentialsMatchFailure 0.003
testLogoutWithAuthenticationCachingEnabled 0.007
testSupports 0.003
testAssertCredentialsMatchWithNullCredentialsMatcher 0.002
testAuthenticationCachingEnabledWithCacheMiss 0.003
testGetAuthenticationInfoWithNullReturnValue 0
testSupportsWithCustomAuthenticationTokenClass 0.002
testNewInstanceWithCredentialsMatcher 0
testSetName 0.001
testNewInstanceWithCacheManager 0.001
testSetCache 0

WildcardPermissionResolverTest

testCaseSensitiveToggle 0
testCaseInsensitive 0
testDefaultIsNonCaseSensitive 0
testCaseSensitive 0

JndiLdapRealmTest

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

RegExPatternMatcherTest

testSimplePattern 0

Sha384CredentialsMatcherTest

testBasic 0

ModularRealmAuthenticatorTest

testSingleRealmAuthenticationWithUnsupportedToken 0.009
testSingleRealmAuthenticationWithNullAuthenticationInfo 0.001
testDoAuthenticateNoRealms 0
testNewInstance 0.001
testSingleRealmAuthenticationSuccess 0.001
testMultiRealmAuthenticationSuccess 0.006
testMultiRealmAuthenticationWithAuthenticationException 0.006
testOnLogout 0.005

DefaultSecurityManagerTest

testDefaultConfig 0.001
testSubjectReuseAfterLogout 0.001
testNewSubjectWithoutThreadSecurityManager 0.001
testAutoCreateSessionAfterInvalidation 0.152

AuthorizationExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

JDBCRealmTest

testPermissionPresent 0.257
testPermissionNotPresent 0.023
testExternalSuccess 0.021
testBase64SaltColumnWrongPassword 0.03
testRoleNotPresent 0.027
testUnSaltedSuccess 0.018
testRolePresent 0.014
testSaltColumnWrongPassword 0.013
testUnSaltedWrongPassword 0.013
testSaltColumnSuccess 0.012
testBase64EncodedSaltColumnSuccess 0.012
testUnSaltedMultipleRows 0.013
testExternalWrongPassword 0.015

DomainPermissionTest

testActionsTargetsConstructorWithMultipleActionsAndTargets 0
testActionsConstructorWithMultipleActions 0
testActionsTargetsConstructorWithSingleActionAndTarget 0
testActionsConstructorWithSingleAction 0
testDefaultConstructor 0

Sha256CredentialsMatcherTest

testBasic 0.001

WildcardPermissionTest

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

AllSuccessfulStrategyTest

beforeAttemptRealmDoesntSupportToken 0
beforeAttemptSupportingToken 0.001
beforeAllAttempts 0

SubjectAwareExecutorTest

testExecute 0

ModularRealmAuthorizerTest

testSettingOfRolePermissionResolver 0

TextConfigurationRealmTest

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

Sha512CredentialsMatcherTest

testBasic 0

AnnotationResolverTest

testAnnotationFoundFromClass 0.002
testNullMethodInvocation 0.001
testAnnotationFoundFromMethod 0

LockedAccountExceptionTest

testMsgConstructor 0
testNoArgConstructor 0.001
testMsgCauseConstructor 0
testCauseConstructor 0

SubjectAwareExecutorServiceTest

testSubmitRunnable 0.002

ExecutorServiceSessionValidationSchedulerTest

stopSessionValidate 4.002
threadException 4.002
enableSessionValidation 3.996
timeoutSessionValidate 5.001

PasswordMatcherTest

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

AllPermissionTest

testNonNullArgument 0
testNullArgument 0

DefaultLdapContextFactoryTest

testEmptyCharArrayCredentials 0
testEmptyNullCredentials 0
testEmptyByteArrayCredentials 0
testEmptyStringCredentials 0
testGetLdapContextWithoutUrl 0
testGetLdapContext 0.333

DelegatingSubjectTest

testExecuteCallable 0.001
testSessionStopThenStart 0.001
testRunAs 0.003
testExecuteRunnable 0

ExampleShiroIntegrationTest

testSimple 0

HostUnauthorizedExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

DefaultPasswordServiceTest

testPasswordsMatchWithNullOrEmpty 0.096
testStringComparisonWhenNotUsingAParsableHashFormat 0.41
testTurkishLocal 0.291
testEncryptPasswordWithInvalidMatch 0.28
testEncryptPasswordDefault 0.267
testEncryptPasswordWithNullArgument 0.001
testCustomHashFormatFactory 0.036
testHashPasswordWithNullArgument 0.001
testCustomHashService 0.007
testHashFormatWarned 0.137
testBackwardsCompatibility 0.392

FirstSuccessfulStrategyTest

testMergeWithValidAggregateInfo 0
testMergeWithInvalidAggregateInfo 0
testBeforeAttemptEmptyList 0
testBeforeAttemptStopAfterFirstSuccess 0
testBeforeAttemptNull 0
testBeforeAttemptEmptyPrincipal 0.001
beforeAllAttempts 0

SimpleAuthenticationInfoTest

testMergeWithAggregateNullCredentials 0
testMergeWithImmutablePrincipalCollection 0
testMergeWithEmptyInstances 0

ExcessiveAttemptsExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

AllowAllCredentialsMatcherTest

testBasic 0

AuthenticatingRealmIntegrationTest

testShiro354 0.041

DefaultLdapRealmTest

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

IncorrectCredentialsExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

DelegatingSessionTest

testTimeout 0.154

Md5CredentialsMatcherTest

testBasic 0

SerializationExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

JndiObjectFactoryTest

testJndiLookupFailsWithType 0
testGetInstanceWithType 0
testGetInstanceNoType 0
testJndiLookupFailsNoType 0

RoleAnnotationHandlerTest

testOneOfTheRolesRequired 0
testGuestMultipleRolesAssertion 0
testGuestSingleRoleAssertion 0.001

UnauthorizedExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

Sha1CredentialsMatcherTest

testBasic 0

SimplePrincipalCollectionTest

multiplePrincipalsTest 0

ExpiredCredentialsExceptionTest

testMsgConstructor 0
testNoArgConstructor 0
testMsgCauseConstructor 0
testCauseConstructor 0

StringUtilsTest

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

HashedCredentialsMatcherTest

testBackwardsCompatibleSaltedAuthenticationInfo 0.002
testBackwardsCompatibleUnsaltedAuthenticationInfo 0
testSaltedAuthenticationInfo 0.001

ExampleShiroUnitTest

testSimple 0

PermissionAnnotationHandlerTest

testGuestMultiplePermissionAssertion 0
testGuestSinglePermissionAssertion 0

IniRealmTest

testInitWithoutIniResource 0
testIniFileWithoutUsers 0.005
testIniFile 0.001
testNullIni 0
testEmptyIni 0.001

CachingRealmTest

testCachingEnabled 0.003
testGetAvailablePrincipalWithRealmPrincipals 0
testGetAvailablePrincipalWithoutRealmPrincipals 0.002
testSetName 0.008
testNewInstanceWithCacheManager 0
testOnLogout 0.001

AbstractValidatingSessionManagerTest

testValidateSessions 0.001
testNoMemoryLeakOnInvalidSessions 0.003

AbstractAuthenticatorTest

throwAuthenticationExceptionIfDoAuthenticateReturnsNull 0.001
newAbstractAuthenticatorSecurityManagerConstructor 0
notifySuccessAfterDoAuthenticate 0.016
notifyFailureAfterDoAuthenticateThrowsNonAuthenticationException 0.012
authenticateWithNullArgument 0
logExceptionAfterDoAuthenticateThrowsNonAuthenticationException 0.009
nonNullAuthenticationInfoAfterAuthenticate 0
notifyFailureAfterDoAuthenticateThrowsAuthenticationException 0

AuthorizingRealmTest

testDefaultConfig 0
testRealmWithRolePermissionResolver 0.001
testNullAuthzInfo 0.001
testRealmWithEmptyOrNullPermissions 0
testCreateAccountOverride 0.001