@Test public void shouldLeftAlignLogLevelInTenCharacterField() { listener.logMessage(SEVERE, "test message"); verify(view).writeLogMessage(contains("SEVERE ")); }
@Test public void shouldIncludeLogLevelInDisplayedMessage() { listener.logMessage(INFO, "test message"); verify(view).writeLogMessage(contains("INFO")); }
@Test public void shouldIncludeOtherLogLevelInDisplayedMessage() { listener.logMessage(WARNING, "test message"); verify(view).writeLogMessage(contains("WARNING")); }
@Test public void shouldDisplayMesageInView() { listener.logMessage(INFO, "test message"); verify(view).writeLogMessage(contains("test message")); }