use of com.cribbstechnologies.clients.mandrill.model.MandrillRequestWithTag in project Java-Mandrill-Wrapper by cribbstechnologies.
the class MandrillRESTRequestTest method testGetPostDataMandrillRequestWithTag.
@Test
public void testGetPostDataMandrillRequestWithTag() throws Exception {
this.initRequestWithActualMapper();
assertEquals("{\"key\":null,\"tag\":null}", this.request.getPostData(this.emptyTagRequest));
this.mutableTagRequest = new MandrillRequestWithTag();
this.mutableTagRequest.setKey("ABC");
this.mutableTagRequest.setTag("Tag, you're it");
assertEquals("{\"key\":\"ABC\",\"tag\":\"Tag, you're it\"}", this.request.getPostData(this.mutableTagRequest));
}
use of com.cribbstechnologies.clients.mandrill.model.MandrillRequestWithTag in project Java-Mandrill-Wrapper by cribbstechnologies.
the class TagsTest method testGetTimeSeries.
@Test
public void testGetTimeSeries() {
MandrillRequestWithTag request = new MandrillRequestWithTag();
request.setTag("tag1");
try {
TagSeriesResponse response = tagsRequest.getTimeSeries(request);
} catch (RequestFailedException e) {
e.printStackTrace();
fail(e.getMessage());
}
}
Aggregations