Skip to content

Commit

Permalink
JNG-5840 add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Jul 18, 2024
1 parent 34cfba5 commit 1109025
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,5 +432,11 @@ void testSecurity() throws Exception {
assertEquals("UserTransfer", principal.getSimpleName());
assertTrue(principal.isIsPrincipal());

// Claim

assertEquals(1, authentication.getClaims().size());
assertEquals("UNDEFINED", authentication.getClaims().get(0).getType().getName());
assertEquals(principal.getAttributes().stream().filter(a -> a.getName().equals("email")).findFirst().orElse(null), authentication.getClaims().get(0).getAttributeType());

}
}

0 comments on commit 1109025

Please sign in to comment.