Search in sources :

Example 1 with PingResponse

use of com.cribbstechnologies.clients.mandrill.model.response.users.PingResponse in project Java-Mandrill-Wrapper by cribbstechnologies.

the class UsersTest method testPing2.

@Test
public void testPing2() {
    BaseMandrillRequest baseRequest = new BaseMandrillRequest();
    try {
        PingResponse pingResponse = usersRequest.performPing2(baseRequest);
        assertEquals("PONG!", pingResponse.getPingResponse());
    } catch (RequestFailedException e) {
        e.printStackTrace();
        fail(e.getMessage());
    }
}
Also used : RequestFailedException(com.cribbstechnologies.clients.mandrill.exception.RequestFailedException) BaseMandrillRequest(com.cribbstechnologies.clients.mandrill.model.BaseMandrillRequest) PingResponse(com.cribbstechnologies.clients.mandrill.model.response.users.PingResponse) Test(org.junit.Test)

Aggregations

RequestFailedException (com.cribbstechnologies.clients.mandrill.exception.RequestFailedException)1 BaseMandrillRequest (com.cribbstechnologies.clients.mandrill.model.BaseMandrillRequest)1 PingResponse (com.cribbstechnologies.clients.mandrill.model.response.users.PingResponse)1 Test (org.junit.Test)1