use of com.cribbstechnologies.clients.mandrill.model.response.users.VerifyResponse in project Java-Mandrill-Wrapper by cribbstechnologies.
the class MandrillUsersRequestTest method testVerifySender.
@Test
public void testVerifySender() throws RequestFailedException {
usersRequest.setRequest(request);
MandrillRequestWithEmail verifyRequest = new MandrillRequestWithEmail();
VerifyResponse response = new VerifyResponse();
Mockito.when(request.postRequest(verifyRequest, ServiceMethods.Users.VERIFY_SENDER, VerifyResponse.class)).thenReturn(response);
usersRequest.verifySender(verifyRequest);
Mockito.verify(request).postRequest(verifyRequest, ServiceMethods.Users.VERIFY_SENDER, VerifyResponse.class);
}
use of com.cribbstechnologies.clients.mandrill.model.response.users.VerifyResponse in project Java-Mandrill-Wrapper by cribbstechnologies.
the class UsersTest method testVerifySender.
@Test
public void testVerifySender() {
MandrillRequestWithEmail emailRequest = new MandrillRequestWithEmail();
emailRequest.setEmail(props.getProperty("verify.email"));
try {
VerifyResponse response = usersRequest.verifySender(emailRequest);
} catch (RequestFailedException e) {
e.printStackTrace();
fail(e.getMessage());
}
}
Aggregations