Last active
April 16, 2016 15:44
-
-
Save r-winkler/fab2c1fc0103baa4e3e70b0f8165011b 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
public class HamcrestStringAssert { | |
private static final String DEV = "Developer"; | |
@Test | |
public void testString() { | |
assertThat(DEV, is(notNullValue())); | |
assertThat(DEV, not(isEmptyString())); | |
assertThat(DEV, startsWith("Dev")); | |
assertThat(DEV.length(), equalTo(9)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment