Surefire Report

Summary

[Summary] [Package List] [Test Cases]


TestsErrors FailuresSkippedSuccess RateTime
341000100%11.84

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


PackageTestsErrors FailuresSkippedSuccess RateTime
org.apache.shiro.crypto8000100%0.257
org.apache.shiro.authc.pam11000100%0.079
org.apache.shiro.authz.aop5000100%0.065
org.apache.shiro.codec2000100%0.034
org.apache.shiro.test2000100%0.001
org.apache.shiro.authc.credential26000100%5.14
org.apache.shiro.crypto.hash.format27000100%0.11
org.apache.shiro.subject4000100%0.037
org.apache.shiro.concurrent2000100%0.018
org.apache.shiro.realm.activedirectory1000100%0.018
org.apache.shiro.authc34000100%0.17
org.apache.shiro.jndi4000100%0.005
org.apache.shiro.realm.jdbc11000100%0.64
org.apache.shiro.crypto.hash14000100%0.049
org.apache.shiro.util9000100%0.004
org.apache.shiro.mgt23000100%0.324
org.apache.shiro.realm.ldap32000100%0.143
org.apache.shiro.io4000100%0.002
org.apache.shiro.realm24000100%0.208
org.apache.shiro.config41000100%0.538
org.apache.shiro.authz17000100%0.011
org.apache.shiro.session.mgt12000100%0.362
org.apache.shiro.aop2000100%0.066
org.apache.shiro.realm.text12000100%3.546
org.apache.shiro.authz.permission14000100%0.013

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

org.apache.shiro.crypto

ClassTestsErrors FailuresSkippedSuccess RateTime
AesCipherServiceTest2000100%0.221
BlowfishCipherServiceTest2000100%0.026
JcaCipherServiceTest1000100%0.01
SecureRandomNumberGeneratorTest3000100%0

org.apache.shiro.authc.pam

ClassTestsErrors FailuresSkippedSuccess RateTime
AllSuccessfulStrategyTest3000100%0.008
ModularRealmAuthenticatorTest8000100%0.071

org.apache.shiro.authz.aop

ClassTestsErrors FailuresSkippedSuccess RateTime
PermissionAnnotationHandlerTest2000100%0.048
RoleAnnotationHandlerTest3000100%0.017

org.apache.shiro.codec

ClassTestsErrors FailuresSkippedSuccess RateTime
H64Test2000100%0.034

org.apache.shiro.test

ClassTestsErrors FailuresSkippedSuccess RateTime
ExampleShiroIntegrationTest1000100%0.001
ExampleShiroUnitTest1000100%0

org.apache.shiro.authc.credential

ClassTestsErrors FailuresSkippedSuccess RateTime
AllowAllCredentialsMatcherTest1000100%0.002
DefaultPasswordServiceTest10000100%5.091
HashedCredentialsMatcherTest3000100%0.005
Md2CredentialsMatcherTest1000100%0.002
Md5CredentialsMatcherTest1000100%0.001
PasswordMatcherTest6000100%0.034
Sha1CredentialsMatcherTest1000100%0.001
Sha256CredentialsMatcherTest1000100%0.001
Sha384CredentialsMatcherTest1000100%0.002
Sha512CredentialsMatcherTest1000100%0.001

org.apache.shiro.crypto.hash.format

ClassTestsErrors FailuresSkippedSuccess RateTime
Base64FormatTest2000100%0.006
DefaultHashFormatFactoryTest12000100%0.068
HexFormatTest2000100%0.003
ProvidedHashFormatTest2000100%0.017
Shiro1CryptFormatTest9000100%0.016

org.apache.shiro.subject

ClassTestsErrors FailuresSkippedSuccess RateTime
DelegatingSubjectTest4000100%0.037

org.apache.shiro.concurrent

ClassTestsErrors FailuresSkippedSuccess RateTime
SubjectAwareExecutorServiceTest1000100%0.009
SubjectAwareExecutorTest1000100%0.009

org.apache.shiro.realm.activedirectory

ClassTestsErrors FailuresSkippedSuccess RateTime
ActiveDirectoryRealmTest1000100%0.018

org.apache.shiro.authc

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractAuthenticatorTest7000100%0.125
ConcurrentAccessExceptionTest4000100%0.018
ExcessiveAttemptsExceptionTest4000100%0.009
ExpiredCredentialsExceptionTest4000100%0.003
IncorrectCredentialsExceptionTest4000100%0.004
LockedAccountExceptionTest4000100%0.003
SimpleAuthenticationInfoTest3000100%0.007
UnknownAccountExceptionTest4000100%0.001

org.apache.shiro.jndi

ClassTestsErrors FailuresSkippedSuccess RateTime
JndiObjectFactoryTest4000100%0.005

org.apache.shiro.realm.jdbc

ClassTestsErrors FailuresSkippedSuccess RateTime
JDBCRealmTest11000100%0.64

org.apache.shiro.crypto.hash

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultHashServiceTest11000100%0.04
HashRequestBuilderTest3000100%0.009

org.apache.shiro.util

ClassTestsErrors FailuresSkippedSuccess RateTime
RegExPatternMatcherTest1000100%0.001
StringUtilsTest8000100%0.003

org.apache.shiro.mgt

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractRememberMeManagerTest1000100%0.004
DefaultSecurityManagerTest3000100%0.23
DefaultSubjectDAOTest18000100%0.076
VMSingletonDefaultSecurityManagerTest1000100%0.014

org.apache.shiro.realm.ldap

ClassTestsErrors FailuresSkippedSuccess RateTime
DefaultLdapContextFactoryTest6000100%0.064
JndiLdapContextFactoryTest15000100%0.06
JndiLdapRealmTest11000100%0.019

org.apache.shiro.io

ClassTestsErrors FailuresSkippedSuccess RateTime
SerializationExceptionTest4000100%0.002

org.apache.shiro.realm

ClassTestsErrors FailuresSkippedSuccess RateTime
AuthenticatingRealmIntegrationTest1000100%0.05
AuthenticatingRealmTest13000100%0.109
AuthorizingRealmTest4000100%0.028
CachingRealmTest6000100%0.021

org.apache.shiro.config

ClassTestsErrors FailuresSkippedSuccess RateTime
IniSecurityManagerFactoryTest9000100%0.306
IniTest5000100%0.006
ReflectionBuilderTest27000100%0.226

org.apache.shiro.authz

ClassTestsErrors FailuresSkippedSuccess RateTime
AuthorizationExceptionTest4000100%0.001
HostUnauthorizedExceptionTest4000100%0.002
ModularRealmAuthorizerTest1000100%0.006
UnauthenticatedExceptionTest4000100%0.001
UnauthorizedExceptionTest4000100%0.001

org.apache.shiro.session.mgt

ClassTestsErrors FailuresSkippedSuccess RateTime
AbstractValidatingSessionManagerTest2000100%0.007
DefaultSessionManagerTest6000100%0.192
DelegatingSessionTest1000100%0.156
SimpleSessionTest3000100%0.007

org.apache.shiro.aop

ClassTestsErrors FailuresSkippedSuccess RateTime
AnnotationResolverTest2000100%0.066

org.apache.shiro.realm.text

ClassTestsErrors FailuresSkippedSuccess RateTime
IniRealmTest5000100%0.016
TextConfigurationRealmTest7000100%3.53

org.apache.shiro.authz.permission

ClassTestsErrors FailuresSkippedSuccess RateTime
AllPermissionTest2000100%0.001
DomainPermissionTest5000100%0.005
WildcardPermissionTest7000100%0.007

Test Cases

[Summary] [Package List] [Test Cases]

AnnotationResolverTest

testAnnotationFoundFromClass0.062
testAnnotationFoundFromMethod0.004

AbstractAuthenticatorTest

newAbstractAuthenticatorSecurityManagerConstructor0.098
authenticateWithNullArgument0.001
throwAuthenticationExceptionIfDoAuthenticateReturnsNull0.007
nonNullAuthenticationInfoAfterAuthenticate0.008
notifySuccessAfterDoAuthenticate0.007
notifyFailureAfterDoAuthenticateThrowsAuthenticationException0.002
notifyFailureAfterDoAuthenticateThrowsNonAuthenticationException0.002

ConcurrentAccessExceptionTest

testNoArgConstructor0.013
testMsgConstructor0.005
testCauseConstructor0
testMsgCauseConstructor0

ExcessiveAttemptsExceptionTest

testNoArgConstructor0.002
testMsgConstructor0.001
testCauseConstructor0.006
testMsgCauseConstructor0

ExpiredCredentialsExceptionTest

testNoArgConstructor0
testMsgConstructor0
testCauseConstructor0.002
testMsgCauseConstructor0.001

IncorrectCredentialsExceptionTest

testNoArgConstructor0.001
testMsgConstructor0.001
testCauseConstructor0.001
testMsgCauseConstructor0.001

LockedAccountExceptionTest

testNoArgConstructor0.002
testMsgConstructor0.001
testCauseConstructor0
testMsgCauseConstructor0

SimpleAuthenticationInfoTest

testMergeWithEmptyInstances0.001
testMergeWithAggregateNullCredentials0.002
testMergeWithImmutablePrincipalCollection0.004

UnknownAccountExceptionTest

testNoArgConstructor0
testMsgConstructor0
testCauseConstructor0
testMsgCauseConstructor0.001

AllowAllCredentialsMatcherTest

testBasic0.002

DefaultPasswordServiceTest

testEncryptPasswordWithNullArgument0.173
testHashPasswordWithNullArgument0.002
testEncryptPasswordDefault1.227
testEncryptPasswordWithInvalidMatch0.913
testBackwardsCompatibility1.294
testHashFormatWarned0.463
testPasswordsMatchWithNullOrEmpty0.009
testCustomHashService0.032
testCustomHashFormatFactory0.029
testStringComparisonWhenNotUsingAParsableHashFormat0.949

HashedCredentialsMatcherTest

testSaltedAuthenticationInfo0.003
testBackwardsCompatibleUnsaltedAuthenticationInfo0.001
testBackwardsCompatibleSaltedAuthenticationInfo0.001

Md2CredentialsMatcherTest

testBasic0.002

Md5CredentialsMatcherTest

testBasic0.001

PasswordMatcherTest

testMissingPasswordService0.006
testStringPasswordComparison0.011
testHashComparisonWithoutHashedPasswordService0.002
testHashComparison0.005
testCharArrayComparison0.008
testUnexpectedSavedCredentialsType0.002

Sha1CredentialsMatcherTest

testBasic0.001

Sha256CredentialsMatcherTest

testBasic0.001

Sha384CredentialsMatcherTest

testBasic0.002

Sha512CredentialsMatcherTest

testBasic0.001

AllSuccessfulStrategyTest

beforeAllAttempts0.002
beforeAttemptSupportingToken0.005
beforeAttemptRealmDoesntSupportToken0.001

ModularRealmAuthenticatorTest

testNewInstance0.011
testDoAuthenticateNoRealms0.002
testSingleRealmAuthenticationSuccess0.013
testSingleRealmAuthenticationWithUnsupportedToken0.001
testSingleRealmAuthenticationWithNullAuthenticationInfo0.001
testMultiRealmAuthenticationSuccess0.014
testMultiRealmAuthenticationWithAuthenticationException0.018
testOnLogout0.011

AuthorizationExceptionTest

testNoArgConstructor0
testMsgConstructor0
testCauseConstructor0
testMsgCauseConstructor0.001

HostUnauthorizedExceptionTest

testNoArgConstructor0.001
testMsgConstructor0
testCauseConstructor0.001
testMsgCauseConstructor0

ModularRealmAuthorizerTest

testSettingOfRolePermissionResolver0.006

UnauthenticatedExceptionTest

testNoArgConstructor0
testMsgConstructor0
testCauseConstructor0
testMsgCauseConstructor0

UnauthorizedExceptionTest

testNoArgConstructor0
testMsgConstructor0
testCauseConstructor0
testMsgCauseConstructor0

PermissionAnnotationHandlerTest

testGuestSinglePermissionAssertion0.044
testGuestMultiplePermissionAssertion0.004

RoleAnnotationHandlerTest

testGuestSingleRoleAssertion0.004
testGuestMultipleRolesAssertion0.003
testOneOfTheRolesRequired0.01

AllPermissionTest

testNullArgument0.001
testNonNullArgument0

DomainPermissionTest

testDefaultConstructor0.003
testActionsConstructorWithSingleAction0
testActionsConstructorWithMultipleActions0.001
testActionsTargetsConstructorWithSingleActionAndTarget0.001
testActionsTargetsConstructorWithMultipleActionsAndTargets0

WildcardPermissionTest

testNull0
testEmpty0
testBlank0
testOnlyDelimiters0.001
testNamed0.001
testLists0.002
testWildcards0.003

H64Test

testNothing0
testDefault0.034

SubjectAwareExecutorServiceTest

testSubmitRunnable0.009

SubjectAwareExecutorTest

testExecute0.009

IniSecurityManagerFactoryTest

testGetInstanceWithoutIni0.018
testGetInstanceWithResourcePath0.03
testGetInstanceWithEmptyIni0.008
testGetInstanceWithSimpleIni0.086
testGetInstanceWithConfiguredRealm0.041
testGetInstanceWithAutomaticallyCreatedIniRealm0.009
testImplicitIniRealmWithAdditionalRealmConfiguration0.055
testImplicitIniRealmWithConfiguredPermissionResolver0.019
testCacheManagerConfigOrderOfOperations0.04

IniTest

testNoSections0.001
testIsContinued0
testSplitKeyValue0.003
testSplitKeyValueNoValue0
testOneSection0.002

ReflectionBuilderTest

testStandardPropertyAssignment0.068
testMapEntryAssignment0.009
testArrayEntryAssignment0.008
testNestedPathAssignment0.002
testNestedMapAssignmentWithPeriodDelimitedKeys0.033
testSimpleConfig0.009
testWithConfiguredNullValue0.006
testWithConfiguredNullLiteralValue0.002
testWithConfiguredEmptyStringValue0.003
testWithConfiguredEmptyStringLiteralValue0.002
testSimpleConfigWithDollarSignStringValue0.001
testObjectReferenceConfig0.007
testObjectReferenceConfigWithTypeMismatch0
testObjectReferenceConfigWithInvalidReference0
testSetProperty0.012
testSetPropertyWithReferencedSet0.014
testListProperty0
testListPropertyWithReferencedList0
testCollectionProperty0.006
testCollectionPropertyWithReferencedCollection0.001
testByteArrayHexProperty0.01
testByteArrayBase64Property0.011
testMapProperty0.005
testMapPropertyWithReferencedMap0.007
testNestedListProperty0
testInitializable0.005
testFactoryInstantiation0.005

AesCipherServiceTest

testBlockOperations0.218
testStreamingOperations0.003

BlowfishCipherServiceTest

testBlockOperations0.017
testStreamingOperations0.009

JcaCipherServiceTest

testDecrypt0

SecureRandomNumberGeneratorTest

testDefaultNextBytesSize0
testInvalidSecureRandomProperty0
testNextBytesWithSize0

DefaultHashServiceTest

testNullRequest0
testDifferentAlgorithmName0.012
testDifferentIterations0.001
testDifferentRandomNumberGenerator0.007
testWithRandomlyGeneratedSalt0.001
testRequestWithEmptySource0.007
testOnlyRandomSaltHash0.003
testBothSaltsRandomness0.002
testBothSaltsReturn0.002
testBothSaltsHash0.001
testPrivateSaltChangesResult0.004

HashRequestBuilderTest

testDefault0.004
testNullSource0
testConfig0.005

Base64FormatTest

testFormat0.005
testFormatWithNullArgument0.001

DefaultHashFormatFactoryTest

testDefaultInstance0.019
testNullArg0
testNotFound0.002
testSetFormatClassNames0.001
testGetInstanceWithConfiguredFormatClassName0.001
testGetInstanceWithMcfFormattedString0
testAbsentFQCN0.003
testPresentFQCN0.001
testMcfFormattedArgument0.003
testSearchPackages0.015
testSearchPackagesWithoutMatch0.022
testWithInvalidHashFormatImplementation0.001

HexFormatTest

testFormat0.002
testFormatWithNullArgument0.001

ProvidedHashFormatTest

testDefaults0.015
testByIdWithNullArg0.002

Shiro1CryptFormatTest

testFormatWithNullArgument0
testGetId0.003
testFormatDefault0.001
testFormatWithoutSalt0.003
testParseDefault0.004
testParseWithoutSalt0.003
testParseWithNullArgument0.001
testParseWithInvalidId0
testParseWithNonNumericIterations0.001

SerializationExceptionTest

testNoArgConstructor0.001
testMsgConstructor0
testCauseConstructor0
testMsgCauseConstructor0.001

JndiObjectFactoryTest

testGetInstanceWithType0.003
testGetInstanceNoType0.001
testJndiLookupFailsWithType0
testJndiLookupFailsNoType0.001

AbstractRememberMeManagerTest

testGetRememberedPrincipalsWithEmptySerializedBytes0.004

DefaultSecurityManagerTest

testDefaultConfig0.02
testAutoCreateSessionAfterInvalidation0.167
testSubjectReuseAfterLogout0.043

DefaultSubjectDAOTest

testIsSessionStorageEnabledDefault0.003
testIsSessionStorageEnabledDefaultSubject0.006
testCustomSessionStorageEvaluator0.007
testDeleteWithoutSession0.003
testDeleteWithSession0.015
testSaveWhenSessionStorageIsDisabled0.004
testSaveWithoutSessionOrPrincipalsOrAuthentication0.003
testMergePrincipalsWithDelegatingSubject0.017
testMergePrincipalsWithSubjectPrincipalsButWithoutSession0.001
testMergePrincipalsWithoutSubjectPrincipalsOrSessionPrincipals0
testMergePrincipalsWithoutSubjectPrincipalsButWithSessionPrincipals0.001
testMergePrincipalsWithSubjectPrincipalsButWithoutSessionPrincipals0.003
testMergePrincipalsWithSubjectPrincipalsButWithDifferentSessionPrincipals0.001
testMergeAuthcWithSubjectAuthcButWithoutSession0.004
testMergeAuthcWithoutSubjectAuthcOrSessionAuthc0.001
testMergeAuthcWithoutSubjectAuthcButWithSessionAuthc0.005
testMergeAuthcWithSubjectAuthcButWithoutSessionAuthc0.001
testMergeAuthcWithSubjectAuthcButWithDifferentSessionAuthc0.001

VMSingletonDefaultSecurityManagerTest

testVMSingleton0.014

AuthenticatingRealmIntegrationTest

testShiro3540.05

AuthenticatingRealmTest

testSetName0.021
testSupports0.002
testSupportsWithCustomAuthenticationTokenClass0.01
testNewInstanceWithCacheManager0
testNewInstanceWithCredentialsMatcher0.003
testSetCache0.005
testGetAuthenticationInfo0.013
testGetAuthenticationInfoWithNullReturnValue0
testAuthenticationCachingEnabledWithCacheMiss0.012
testAuthenticationCachingEnabledWithCacheHit0.026
testLogoutWithAuthenticationCachingEnabled0.009
testAssertCredentialsMatchWithNullCredentialsMatcher0.002
testAssertCredentialsMatchFailure0.006

AuthorizingRealmTest

testDefaultConfig0.005
testCreateAccountOverride0
testNullAuthzInfo0.016
testRealmWithRolePermissionResolver0.007

CachingRealmTest

testOnLogout0.013
testSetName0.003
testNewInstanceWithCacheManager0
testCachingEnabled0.001
testGetAvailablePrincipalWithRealmPrincipals0.001
testGetAvailablePrincipalWithoutRealmPrincipals0.003

ActiveDirectoryRealmTest

testDefaultConfig0.018

JDBCRealmTest

testUnSaltedSuccess0.226
testUnSaltedWrongPassword0.059
testUnSaltedMultipleRows0.025
testSaltColumnSuccess0.037
testSaltColumnWrongPassword0.024
testExternalSuccess0.038
testExternalWrongPassword0.027
testRolePresent0.043
testRoleNotPresent0.065
testPermissionPresent0.055
testPermissionNotPresent0.041

DefaultLdapContextFactoryTest

testGetLdapContext0.061
testGetLdapContextWithoutUrl0
testEmptyStringCredentials0.001
testEmptyCharArrayCredentials0.001
testEmptyByteArrayCredentials0
testEmptyNullCredentials0.001

JndiLdapContextFactoryTest

testGetLdapContext0.037
testGetLdapContextWithoutUrl0
testEmptyStringCredentials0
testEmptyCharArrayCredentials0.001
testEmptyByteArrayCredentials0
testEmptyNullCredentials0
testAuthenticationMechanism0
testReferral0
testGetContextFactoryClassName0
testSetEnvironmentPropertyNull0
testCustomEnvironment0
testGetLdapContextDefault0.019
testGetLdapContextStringArguments0.001
testGetSystemLdapContext0.001
testGetSystemLdapContextPoolingDisabled0.001

JndiLdapRealmTest

testDefaultInstance0
testSetUserDnTemplateNull0.001
testSetUserDnTemplateEmpty0
testSetUserDnTemplateWithoutToken0.001
testUserDnTemplate0
testUserDnTemplateSubstitution0.014
testGetAuthenticationInfoNamingAuthenticationException0
testGetAuthenticationInfoNamingException0
testGetAuthenticationInfoNonSimpleToken0.002
testGetUserDnNullArgument0
testGetUserDnWithOutPrefixAndSuffix0.001

IniRealmTest

testNullIni0.001
testEmptyIni0.001
testInitWithoutIniResource0.001
testIniFile0.008
testIniFileWithoutUsers0.005

TextConfigurationRealmTest

testRoleAndUserAccount0.507
testHasRole0.504
testCheckRole0.503
testCheckPermission0.504
testIsPermitted0.507
testProcessRoleDefinitions0.502
testProcessUserDefinitions0.503

AbstractValidatingSessionManagerTest

testValidateSessions0.003
testNoMemoryLeakOnInvalidSessions0.004

DefaultSessionManagerTest

testGlobalTimeout0.003
testSessionListenerStartNotification0.003
testSessionListenerStopNotification0.002
testSessionListenerStopNotificationWithReadAttribute0.003
testSessionListenerExpiredNotification0.155
testSessionDeleteOnExpiration0.026

DelegatingSessionTest

testTimeout0.156

SimpleSessionTest

testDefaultSerialization0.006
serializeHost0
serializeExpired0.001

DelegatingSubjectTest

testSessionStopThenStart0.011
testExecuteCallable0.001
testExecuteRunnable0
testRunAs0.025

ExampleShiroIntegrationTest

testSimple0.001

ExampleShiroUnitTest

testSimple0

RegExPatternMatcherTest

testSimplePattern0

StringUtilsTest

splitWithNullInput0
splitWithCommas0.001
splitWithCommasAndSpaces0
splitWithQuotedCommasAndSpaces0
splitWithQuotedCommasAndSpacesAndDifferentQuoteChars0.001
splitWithQuotedCommasAndSpacesAndDifferentQuoteCharsWhileRetainingQuotes0
splitTestWithQuotedCommas0
splitWithQuotedCommasAndSpacesAndEscapedQuotes0.001