Search in sources :

Example 1 with AcceptedMessage

use of org.opengrok.indexer.web.messages.MessagesContainer.AcceptedMessage in project OpenGrok by OpenGrok.

the class MessagesControllerTest method addMessageTest.

@Test
public void addMessageTest() {
    addMessage("test message");
    assertFalse(env.getMessages().isEmpty());
    AcceptedMessage msg = env.getMessages().first();
    assertEquals("test message", msg.getMessage().getText());
}
Also used : AcceptedMessage(org.opengrok.indexer.web.messages.MessagesContainer.AcceptedMessage) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 AcceptedMessage (org.opengrok.indexer.web.messages.MessagesContainer.AcceptedMessage)1