@Test public void isCorrectConvertToStringForFile() { logMessage = new LogMessage("12.03.2012", "Test message.", LogStatus.success); assertEquals(logMessage.toStringForFile("/"), "12.03.2012/Test message./success"); }
@Test public void isCorrectSetMessageAtStringForFile() { logMessage = new LogMessage("12.03.2012/Test message./" + LogStatus.success.toString(), "/"); assertEquals(logMessage.toString(), "12.03.2012 > Test message. Status: success"); }
@Test public void isCorrectConvertToString() { logMessage = new LogMessage("12.03.2012", "Test message.", LogStatus.success); assertEquals(logMessage.toString(), "12.03.2012 > Test message. Status: success"); }