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));
}
Aggregations