Search in sources :

Example 1 with LogMessage

use of org.eol.globi.domain.LogMessage in project eol-globi-data by jhpoelen.

the class NodeFactoryIT method createLogMessage.

@Test
public void createLogMessage() throws NodeFactoryException {
    Study bla = nodeFactory.createStudy(new StudyImpl("bla", null, null, null));
    bla.appendLogMessage("one two three", Level.INFO);
    List<LogMessage> logMessages = bla.getLogMessages();
    assertThat(logMessages.size(), is(1));
    assertThat(logMessages.get(0).getMessage(), is("one two three"));
    assertThat(logMessages.get(0).getLevel(), is("INFO"));
}
Also used : Study(org.eol.globi.domain.Study) LogMessage(org.eol.globi.domain.LogMessage) StudyImpl(org.eol.globi.domain.StudyImpl) Test(org.junit.Test)

Aggregations

LogMessage (org.eol.globi.domain.LogMessage)1 Study (org.eol.globi.domain.Study)1 StudyImpl (org.eol.globi.domain.StudyImpl)1 Test (org.junit.Test)1