Skip to content

Instantly share code, notes, and snippets.

@iporsut
Created October 21, 2014 15:13
Show Gist options
  • Save iporsut/1929201c6e70e9e7b917 to your computer and use it in GitHub Desktop.
Save iporsut/1929201c6e70e9e7b917 to your computer and use it in GitHub Desktop.
AcceptingAuthorizerSpy Java
public class AcceptingAuthorizerSpy implements Authorizer {
public boolean authorizeWasCalled = false;
public Boolean authorize(String username, String password) {
authorizeWasCalled = true;
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment