Skip to content

Instantly share code, notes, and snippets.

@Rene-Frerichs
Created November 26, 2015 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rene-Frerichs/17f365f5047913558ac0 to your computer and use it in GitHub Desktop.
Save Rene-Frerichs/17f365f5047913558ac0 to your computer and use it in GitHub Desktop.
@Test
public void assertJ() throws Exception {
assertThatThrownBy(this::methodThrowsIllegalArgument)
.isInstanceOf(IllegalArgumentException.class)
.hasMessage("Invalid Argument");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment