Search in sources :

Example 11 with MetricCommand

use of com.axibase.tsd.api.model.command.MetricCommand in project atsd-api-test by axibase.

the class MetricCommandTest method testRequired.

@Issue("3137")
@Test
public void testRequired() throws Exception {
    MetricCommand command = new MetricCommand((String) null);
    CommandSendingResult expectedResult = new CommandSendingResult(1, 0);
    assertEquals("Command without metric Name sholdn't be inserted", expectedResult, CommandMethod.send(command));
}
Also used : MetricCommand(com.axibase.tsd.api.model.command.MetricCommand) CommandSendingResult(com.axibase.tsd.api.model.extended.CommandSendingResult) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Aggregations

MetricCommand (com.axibase.tsd.api.model.command.MetricCommand)11 Issue (io.qameta.allure.Issue)11 Test (org.testng.annotations.Test)11 Metric (com.axibase.tsd.api.model.metric.Metric)10 MetricCheck (com.axibase.tsd.api.method.checks.MetricCheck)3 CommandSendingResult (com.axibase.tsd.api.model.extended.CommandSendingResult)1