Last active
October 26, 2015 15:04
-
-
Save stephan-mueller/f581f894fcff48ffec20 to your computer and use it in GitHub Desktop.
JUnit test to demonstrate AssertJ assertions.
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 | |
public void assertjAssertion() throws Exception { | |
String openKnowledge = "offen, kundig, gut!"; | |
Assertions.assertThat(openKnowledge).startsWith("offen").contains("kundig").endsWith("gut!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment