Search in sources :

Example 1 with Severity

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()));
    }
}
Also used : Message(com.axibase.tsd.api.model.message.Message) Severity(com.axibase.tsd.api.model.message.Severity) Date(java.util.Date) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

Message (com.axibase.tsd.api.model.message.Message)1 Severity (com.axibase.tsd.api.model.message.Severity)1 Date (java.util.Date)1 BeforeClass (org.testng.annotations.BeforeClass)1