use of com.axibase.tsd.api.model.message.MessageQuery in project atsd-api-test by axibase.
the class MessageQueryTest method testISOTimezonePlusHourMinute.
@Issue("2850")
@Test
public void testISOTimezonePlusHourMinute() throws Exception {
MessageQuery messageQuery = buildMessageQuery();
messageQuery.setStartDate("2018-05-21T01:23:00+01:23");
List<Message> storedMessageList = queryMessageResponse(messageQuery).readEntity(new GenericType<List<Message>>() {
});
Message storedMessage = storedMessageList.get(0);
assertEquals("Incorrect message entity", message.getEntity(), storedMessage.getEntity());
assertEquals("Incorrect message text", message.getMessage(), storedMessage.getMessage());
assertEquals("Incorrect message date", message.getDate(), storedMessage.getDate());
}
Aggregations