Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix javac build

Replace both() with allOf()
  • Loading branch information...
commit ab9caa3650a262ef4399cfd7f0d7fdc366d6e327 1 parent eaa8d51
Marc Philipp authored
12  src/test/java/org/junit/tests/experimental/theories/runner/UnsuccessfulWithDataPointFields.java
... ...
@@ -1,5 +1,6 @@
1 1
 package org.junit.tests.experimental.theories.runner;
2 2
 
  3
+import static org.hamcrest.CoreMatchers.allOf;
3 4
 import static org.hamcrest.CoreMatchers.is;
4 5
 import static org.junit.Assert.assertThat;
5 6
 import static org.junit.experimental.results.PrintableResult.testResult;
@@ -147,12 +148,9 @@ public void numbers(int x) {
147 148
 	public void dataPointsMustBePublic() {
148 149
 		assertThat(
149 150
 				testResult(DataPointsMustBePublic.class),
150  
-				both(failureCountIs(3))
151  
-						.and(
152  
-								hasFailureContaining("DataPoint field THREE must be public"))
153  
-						.and(
154  
-								hasFailureContaining("DataPoint field FOUR must be public"))
155  
-						.and(
156  
-								hasFailureContaining("DataPoint field FIVE must be public")));
  151
+				allOf(failureCountIs(3),
  152
+						hasFailureContaining("DataPoint field THREE must be public"),
  153
+						hasFailureContaining("DataPoint field FOUR must be public"),
  154
+						hasFailureContaining("DataPoint field FIVE must be public")));
157 155
 	}
158 156
 }

0 notes on commit ab9caa3

Please sign in to comment.
Something went wrong with that request. Please try again.