void () { MavenLogEntryReader.MavenLogEntry entry = new MavenLogEntryReader.MavenLogEntry("[ERROR] error line"); assertEquals(LogMessageType.ERROR, entry.myType); assertEquals("error line", entry.myLine); entry = new MavenLogEntryReader.MavenLogEntry("[INFO] info line"); assertEquals(LogMessageType.INFO, entry.myType); assertEquals("info line", entry.myLine); entry = new MavenLogEntryReader.MavenLogEntry("[WARNING] warning line"); assertEquals(LogMessageType.WARNING, entry.myType); assertEquals("warning line", entry.myLine); entry = new MavenLogEntryReader.MavenLogEntry("line"); assertNull(entry.myType); assertEquals("line", entry.myLine); }