Permalink
Browse files

Merge pull request #470 from marcphilipp/fix-javac-build

Fix javac build
  • Loading branch information...
2 parents eaa8d51 + ab9caa3 commit 26caa86a40a6643d836e6939186e14145174df12 @dsaff dsaff committed Aug 3, 2012
@@ -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 26caa86

Please sign in to comment.