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