Search in sources :

Example 6 with MessageCommand

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

the class DQuoteCharEscapeTest method testType.

@Issue("2854")
@Test
public void testType() throws Exception {
    Message message = new Message("message-command-test-e2", "message-command-\"test-t2");
    message.setMessage("message2");
    message.setDate(getCurrentDate());
    PlainCommand command = new MessageCommand(message);
    CommandMethod.send(command);
    assertMessageExisting("Inserted message can not be received", message);
}
Also used : Message(com.axibase.tsd.api.model.message.Message) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) MessageCommand(com.axibase.tsd.api.model.command.MessageCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 7 with MessageCommand

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

the class DQuoteCharEscapeTest method testText.

@Issue("2854")
@Test
public void testText() throws Exception {
    Message message = new Message("message-command-test-e3", "message-command-test-t3");
    message.setMessage("mess\"age3");
    message.setDate(getCurrentDate());
    PlainCommand command = new MessageCommand(message);
    CommandMethod.send(command);
    assertMessageExisting("Inserted message can not be received", message);
}
Also used : Message(com.axibase.tsd.api.model.message.Message) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) MessageCommand(com.axibase.tsd.api.model.command.MessageCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 8 with MessageCommand

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

the class EqualCharEscapeTest method testEscapeText.

@Issue("2854")
@Test
public void testEscapeText() throws Exception {
    Message message = new Message("message-command-test-e6", "message-command-test-t6");
    message.setMessage("mess=age6");
    message.setDate(getCurrentDate());
    PlainCommand command = new MessageCommand(message);
    CommandMethod.send(command);
    assertMessageExisting("Inserted message can not be received", message);
}
Also used : Message(com.axibase.tsd.api.model.message.Message) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) MessageCommand(com.axibase.tsd.api.model.command.MessageCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 9 with MessageCommand

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

the class EqualCharEscapeTest method testEntity.

@Issue("2854")
@Test
public void testEntity() throws Exception {
    Message message = new Message("message-command-test=-e4", "message-command-test-t4");
    message.setMessage("message4");
    message.setDate(getCurrentDate());
    PlainCommand command = new MessageCommand(message);
    CommandMethod.send(command);
    assertMessageExisting("Inserted message can not be received", message);
}
Also used : Message(com.axibase.tsd.api.model.message.Message) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) MessageCommand(com.axibase.tsd.api.model.command.MessageCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Example 10 with MessageCommand

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

the class EqualCharEscapeTest method testType.

@Issue("2854")
@Test
public void testType() throws Exception {
    Message message = new Message("message-command-test-e5", "message-command-=test-t5");
    message.setMessage("message5");
    message.setDate(getCurrentDate());
    PlainCommand command = new MessageCommand(message);
    CommandMethod.send(command);
    assertMessageExisting("Inserted message can not be received", message);
}
Also used : Message(com.axibase.tsd.api.model.message.Message) PlainCommand(com.axibase.tsd.api.model.command.PlainCommand) MessageCommand(com.axibase.tsd.api.model.command.MessageCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Aggregations

MessageCommand (com.axibase.tsd.api.model.command.MessageCommand)14 Message (com.axibase.tsd.api.model.message.Message)14 Issue (io.qameta.allure.Issue)14 Test (org.testng.annotations.Test)14 PlainCommand (com.axibase.tsd.api.model.command.PlainCommand)12 CommandSendingResult (com.axibase.tsd.api.model.extended.CommandSendingResult)1