Skip to content

Commit

Permalink
replacing ThreadStateCondition with lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
toby-weston-db committed Jan 22, 2014
1 parent 04f5248 commit 2beb984
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static Condition isWaiting(Thread thread) {
}

public static Condition is(Thread thread, State state) {
return new ThreadStateCondition(thread, state);
return () -> thread.getState() == state;
}

public static void assertThat(Condition condition, Matcher<Boolean> booleanMatcher) {
Expand Down

This file was deleted.

0 comments on commit 2beb984

Please sign in to comment.