use of com.axibase.tsd.api.model.message.Severity in project atsd-api-test by axibase.
the class MessageSeverityQueryTest method insertMessages.
@BeforeClass
public void insertMessages() throws Exception {
message = new Message("message-query-test-severity");
message.setMessage("message-text");
calendar.setTime(new Date());
calendar.add(Calendar.YEAR, -1);
calendar.add(Calendar.DAY_OF_YEAR, 1);
message.setDate(calendar.getTime());
for (Severity severity : values()) {
message.setSeverity(severity.name());
insertMessageCheck(message);
message.setDate(Util.addOneMS(message.getDate()));
}
}
Aggregations