File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
openid-connect-server/src/test/java/org/mitre/openid/connect/service/impl Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -929,9 +929,7 @@ public AuthenticationHolderEntity answer(InvocationOnMock invocation) throws Thr
929
929
List <OAuth2RefreshTokenEntity > savedRefreshTokens = new ArrayList (fakeRefreshTokenTable .values ()); //capturedRefreshTokens.getAllValues();
930
930
Collections .sort (savedRefreshTokens , new refreshTokenIdComparator ());
931
931
932
- assertThat (savedRefreshTokens .get (0 ).getAuthenticationHolder ().getAuthentication ().getOAuth2Request ().getClientId (),
933
- equalTo (token1 .getAuthenticationHolder ().getAuthentication ().getOAuth2Request ().getClientId ()));
934
- assertThat (savedRefreshTokens .get (1 ).getAuthenticationHolder ().getAuthentication ().getOAuth2Request ().getClientId (),
935
- equalTo (token2 .getAuthenticationHolder ().getAuthentication ().getOAuth2Request ().getClientId ()));
932
+ assertThat (savedRefreshTokens .get (0 ).getAuthenticationHolder ().getId (), equalTo (356L ));
933
+ assertThat (savedRefreshTokens .get (1 ).getAuthenticationHolder ().getId (), equalTo (357L ));
936
934
}
937
935
}
Original file line number Diff line number Diff line change @@ -1823,10 +1823,8 @@ public AuthenticationHolderEntity answer(InvocationOnMock invocation) throws Thr
1823
1823
List <OAuth2RefreshTokenEntity > savedRefreshTokens = new ArrayList (fakeRefreshTokenTable .values ()); //capturedRefreshTokens.getAllValues();
1824
1824
Collections .sort (savedRefreshTokens , new refreshTokenIdComparator ());
1825
1825
1826
- assertThat (savedRefreshTokens .get (0 ).getAuthenticationHolder ().getAuthentication ().getOAuth2Request ().getClientId (),
1827
- equalTo (token1 .getAuthenticationHolder ().getAuthentication ().getOAuth2Request ().getClientId ()));
1828
- assertThat (savedRefreshTokens .get (1 ).getAuthenticationHolder ().getAuthentication ().getOAuth2Request ().getClientId (),
1829
- equalTo (token2 .getAuthenticationHolder ().getAuthentication ().getOAuth2Request ().getClientId ()));
1826
+ assertThat (savedRefreshTokens .get (0 ).getAuthenticationHolder ().getId (), equalTo (356L ));
1827
+ assertThat (savedRefreshTokens .get (1 ).getAuthenticationHolder ().getId (), equalTo (357L ));
1830
1828
}
1831
1829
1832
1830
private Set <String > jsonArrayToStringSet (JsonArray a ) {
You can’t perform that action at this time.
0 commit comments