Skip to content

Instantly share code, notes, and snippets.

@r-winkler
Created April 16, 2016 15:32
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 r-winkler/cc071e95fd45f87dbc1e0b002e57f52f to your computer and use it in GitHub Desktop.
Save r-winkler/cc071e95fd45f87dbc1e0b002e57f52f to your computer and use it in GitHub Desktop.
public class AssertJStringAssert {
private static final String DEV = "Developer";
@Test
public void testStrings_WithAssertJ() {
assertThat(DEV).isNotNull().isNotEmpty().startsWith("Dev").contains("elo").hasSize(9);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment