use of com.axibase.tsd.api.model.command.PlainCommand in project atsd-api-test by axibase.
the class DQuoteCharEscapeTest method testEntity.
@Issue("2854")
@Test
public void testEntity() throws Exception {
Message message = new Message("message-command-test\"-e1", "message-command-test-t1");
message.setMessage("message1");
message.setDate(getCurrentDate());
PlainCommand command = new MessageCommand(message);
CommandMethod.send(command);
assertMessageExisting("Inserted message can not be received", message);
}
use of com.axibase.tsd.api.model.command.PlainCommand in project atsd-api-test by axibase.
the class EqualCharEscapeTest method testEntity.
@Issue("2854")
@Test
public void testEntity() throws Exception {
Property property = new Property("property-command-test-t4", "property-command-test=-e4");
property.setTags(DEFAULT_PROPERTY_TAGS);
property.setDate(getCurrentDate());
PlainCommand command = new PropertyCommand(property);
CommandMethod.send(command);
assertPropertyExisting("Inserted property can not be received", property);
}
Aggregations