Permalink
Browse files

Fix javac build

Replace both() with allOf()
  • Loading branch information...
1 parent eaa8d51 commit ab9caa3650a262ef4399cfd7f0d7fdc366d6e327 @marcphilipp marcphilipp committed Aug 2, 2012
View
12 ...st/java/org/junit/tests/experimental/theories/runner/UnsuccessfulWithDataPointFields.java
@@ -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;
@@ -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.