Permalink
Browse files

Fix javac compile error

  • Loading branch information...
1 parent f1be7f2 commit 1489b8e7d87f6948f8c5c95487bdd1d8377232c0 @marcphilipp marcphilipp committed Jul 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/java/org/junit/tests/experimental/rules/ExpectedExceptionTest.java
@@ -1,7 +1,6 @@
package org.junit.tests.experimental.rules;
import static java.util.Arrays.asList;
-import static org.hamcrest.CoreMatchers.allOf;
import static org.hamcrest.CoreMatchers.any;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.is;
@@ -19,6 +18,7 @@
import java.util.Collection;
+import org.hamcrest.CoreMatchers;
import org.hamcrest.Matcher;
import org.junit.Rule;
import org.junit.Test;
@@ -83,7 +83,7 @@
{ ThrowExpectedNullCause.class, everyTestRunSuccessful() },
{
ThrowUnexpectedCause.class,
- hasSingleFailureWithMessage(allOf(
+ hasSingleFailureWithMessage(CoreMatchers.<String>allOf(
startsWith("\nExpected: ("),
containsString("exception with cause is <java.lang.NullPointerException: expected cause>"),
containsString("Stacktrace was: java.lang.IllegalArgumentException: Ack!"),

0 comments on commit 1489b8e

Please sign in to comment.