Shane Weaver (drweaver)
Friday, March 6, 2009
JUnit 4 assertThat imports
The new style assertions in JUnit for which use the
assertThat
style can be difficult to find sometimes. Just need to import the following and it should all work fine:
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment