Skip to content

Commit

Permalink
Merge pull request junit-team#470 from marcphilipp/fix-javac-build
Browse files Browse the repository at this point in the history
Fix javac build
  • Loading branch information
David Saff committed Aug 3, 2012
2 parents eaa8d51 + ab9caa3 commit 26caa86
Showing 1 changed file with 5 additions and 7 deletions.
@@ -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 26caa86

Please sign in to comment.