@Test public void shouldReturnNewCaptchaId() throws Exception { authorityGetCaptchaGateway.newCaptchaId(new Callback()); apiGateway.simulateTextResponse(200, TestResponses.NEW_CAPTCHA, null); assertThat(douban.captchaImageUrl, equalTo(Constants.CAPTCHA_URL + "&id=8Z9w6tODHEukHkAmBz52dWg4:en")); }
public void newCaptchaId(Callback callback) { apiGateway.makeRequest(new AuthGetCaptchaRequest(), new AuthorityGetCaptchaCallback(callback, this, douban)); }
AuthorityGetCaptchaGateway extends BaseApiGateway { public void newCaptchaId(Callback callback) { apiGateway.makeRequest(new AuthGetCaptchaRequest(), new AuthorityGetCaptchaCallback(callback, this, douban)); } }
AuthorityGetCaptchaGateway extends BaseApiGateway { public void newCaptchaId(Callback callback) { apiGateway.makeRequest(new AuthGetCaptchaRequest(), new AuthorityGetCaptchaCallback(callback, this, douban)); } AuthorityGetCaptchaGateway(Douban douban, ApiGateway apiGateway); }
AuthorityGetCaptchaGateway extends BaseApiGateway { public void newCaptchaId(Callback callback) { apiGateway.makeRequest(new AuthGetCaptchaRequest(), new AuthorityGetCaptchaCallback(callback, this, douban)); } AuthorityGetCaptchaGateway(Douban douban, ApiGateway apiGateway); void newCaptchaId(Callback callback); }
AuthorityGetCaptchaGateway extends BaseApiGateway { public void newCaptchaId(Callback callback) { apiGateway.makeRequest(new AuthGetCaptchaRequest(), new AuthorityGetCaptchaCallback(callback, this, douban)); } AuthorityGetCaptchaGateway(Douban douban, ApiGateway apiGateway); void newCaptchaId(Callback callback); static final Gson GSON; }