Skip to content

Commit

Permalink
Fix javac build
Browse files Browse the repository at this point in the history
Replace both() with allOf()
  • Loading branch information
marcphilipp committed Aug 2, 2012
1 parent eaa8d51 commit ab9caa3
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.junit.tests.experimental.theories.runner;

import static org.hamcrest.CoreMatchers.allOf;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.experimental.results.PrintableResult.testResult;
Expand Down Expand Up @@ -147,12 +148,9 @@ public void numbers(int x) {
public void dataPointsMustBePublic() {
assertThat(
testResult(DataPointsMustBePublic.class),
both(failureCountIs(3))
.and(
hasFailureContaining("DataPoint field THREE must be public"))
.and(
hasFailureContaining("DataPoint field FOUR must be public"))
.and(
hasFailureContaining("DataPoint field FIVE must be public")));
allOf(failureCountIs(3),
hasFailureContaining("DataPoint field THREE must be public"),
hasFailureContaining("DataPoint field FOUR must be public"),
hasFailureContaining("DataPoint field FIVE must be public")));
}
}

0 comments on commit ab9caa3

Please sign in to comment.