Skip to content

Commit

Permalink
Removed hamcrest reference from ConcurrentTestCase since unit testing…
Browse files Browse the repository at this point in the history
… frameworks will throw ClassNotFoundException when reflecting the methods on ConcurrentTestCase if Hamcrest is not on the classpath. Instead, Hamcrest users should use the Waiter class.
  • Loading branch information
jhalterman committed Apr 20, 2016
1 parent 1ed231f commit ec6a862
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -105,7 +105,7 @@ class SomeTest extends ConcurrentTestCase {

#### Assertions

ConcurrentUnit supports the standard assertions along with [Hamcrest Matcher](http://hamcrest.org/JavaHamcrest/javadoc/) assertions:
ConcurrentUnit's `Waiter` supports the standard assertions along with [Hamcrest Matcher](http://hamcrest.org/JavaHamcrest/javadoc/) assertions:
```java
waiter.assertEquals(expected, result);
Expand Down
Expand Up @@ -61,13 +61,6 @@ public void threadAssertTrue(boolean b) {
waiter.assertTrue(b);
}

/**
* @see Waiter#assertThat(Object, org.hamcrest.Matcher)
*/
public <T> void threadAssertThat(T actual, org.hamcrest.Matcher<? super T> matcher) {
waiter.assertThat(actual, matcher);
}

/**
* @see Waiter#fail()
*/
Expand Down

0 comments on commit ec6a862

Please sign in to comment.