Skip to content

Commit 0dfe45c

Browse files
committed
Fixes build
1 parent 39e5fa1 commit 0dfe45c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/invite/api/APITokenControllerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void apiTokensByInstitution() throws Exception {
3939
void apiTokensByUser() throws Exception {
4040
AccessCookieFilter accessCookieFilter = openIDConnectFlow("/api/v1/users/me", INVITER_SUB);
4141

42-
List<APIToken> tokens = given()
42+
List<Map<String, Object>> tokens = given()
4343
.when()
4444
.filter(accessCookieFilter.cookieFilter())
4545
.accept(ContentType.JSON)
@@ -49,7 +49,7 @@ void apiTokensByUser() throws Exception {
4949
.as(new TypeRef<>() {
5050
});
5151
assertEquals(1, tokens.size());
52-
assertEquals(INVITER_SUB, tokens.getFirst().getOwner().getSub());
52+
assertEquals("John Doe", tokens.getFirst().get("owner"));
5353
}
5454

5555
@Test

0 commit comments

Comments
 (0)