ilgrosso commented on a change in pull request #189: URL: https://github.com/apache/syncope/pull/189#discussion_r430993076
########## File path: wa/starter/src/test/java/org/apache/syncope/wa/starter/SyncopeCoreTestingServer.java ########## @@ -68,7 +80,81 @@ public void onApplicationEvent(final ContextRefreshedEvent event) { } } - public class StubWAClientAppService implements WAClientAppService { + public static class StubGoogleMfaAuthTokenService implements GoogleMfaAuthTokenService { + private final List<GoogleMfaAuthTokenTO> tokens = new ArrayList<>(); + + @Override + public Response deleteTokensByDate(@NotNull final Date expirationDate) { + tokens.removeIf(token -> token.getIssuedDate().compareTo(expirationDate) >= 0); + return Response.noContent().build(); + } + + @Override + public Response deleteToken(@NotNull final String user, @NotNull final Integer token) { Review comment: @mmoayyed this is still to be addressed, no? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org