Created
September 12, 2011 00:18
-
-
Save coderunner/1210348 to your computer and use it in GitHub Desktop.
testing call to abstract method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| //This can be tested in the abstract class, | |
| //but the child classes will cover it. | |
| public void shouldFormatAndLog() | |
| { | |
| logger.log(LEVEL, MESSAGE); | |
| verify(logger).log(FORMATTED_LOG); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment