Last active
August 29, 2016 13:56
-
-
Save r-winkler/4bf73e78e32e977fb03699e55269577c to your computer and use it in GitHub Desktop.
This file contains 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(expected = IllegalArgumentException.class) | |
public void exceptionTesting() { | |
try { | |
throw new IllegalArgumentException("id must not be null"); | |
} | |
catch(IllegalArgumentException iae) { | |
assertEquals("id must not be null", iae.getMessage()); | |
throw iae; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment