Test Result : ImmutableAuthorizationContextTest
0 failures
(±0)
20 tests
(±0)
All Tests
Test name | Duration | Status |
---|---|---|
addHead | 1 ms | Passed |
addTail | 0 ms | Passed |
assertImmutability | 1 sec | Passed |
fromJsonReturnsExpected | 2 ms | Passed |
getAuthorizationSubjectIdsReturnsExpected | 29 ms | Passed |
getAuthorizationSubjectsReturnsExpected | 0 ms | Passed |
getFirstAuthorizationSubjectReturnsEmptyOptionalIfContextIsEmpty | 1 ms | Passed |
getFirstAuthorizationSubjectReturnsExpectedIfContextIsNotEmpty | 3 ms | Passed |
getSizeReturnsExpected | 6 ms | Passed |
isAuthorizedIfSubjectIsGrantedAndRevokedIsDisjoint | 1 ms | Passed |
isAuthorizedIfSubjectIsGrantedAndRevokedIsEmpty | 14 ms | Passed |
isEmptyReturnsFalseForNonEmptyContext | 1 ms | Passed |
isEmptyReturnsTrueForEmptyContext | 0 ms | Passed |
isNotAuthorizedForEmptyGranted | 0 ms | Passed |
isNotAuthorizedForEmptyGrantedAndRevoked | 0 ms | Passed |
isNotAuthorizedIfSubjectIsGrantedAndRevoked | 1 ms | Passed |
testHashCodeAndEquals | 1.5 sec | Passed |
toJsonReturnsExpected | 12 ms | Passed |
tryToCallIsAuthorizedWithNullGranted | 1 ms | Passed |
tryToCallIsAuthorizedWithNullRevoked | 0.22 sec | Passed |