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