Skip to content

Commit

Permalink
[#237] improve coverage
Browse files Browse the repository at this point in the history
- calling "getAccessToken" two time to check if value is stored in member
  • Loading branch information
Marco Bergen committed Jan 10, 2025
1 parent c3ed297 commit b832cad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/com/cloudogu/smeagol/AccountServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,13 @@ public void testGet() {

assertEquals("admin", account.getUsername());
assertEquals("jwtadmin", account.getAccessToken());
// calling two time to check if value is stored in member
assertEquals("jwtadmin", account.getAccessToken());
assertEquals("Administrator", account.getDisplayName());
assertEquals("[email protected]", account.getMail());

verify(session).setAttribute(Account.class.getName(), account);

}

/**
Expand Down

0 comments on commit b832cad

Please sign in to comment.