CVS: junit/src/org/junit/experimental/theories/test/assertion AssumptionViolatedExceptionTest.java, 1.1, 1.2
David Saff <[email protected]> Mon, 09 Jul 2007 11:49:24 -0700
| Newsgroups | gmane.comp.java.junit.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/junit/junit/src/org/junit/experimental/theories/test/assertion
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv28163/src/org/junit/experimental/theories/test/assertion
Modified Files:
AssumptionViolatedExceptionTest.java
Log Message:
No tests rely on hamcrest-all
Index: AssumptionViolatedExceptionTest.java
===================================================================
RCS file: /cvsroot/junit/junit/src/org/junit/experimental/theories/test/assertion/AssumptionViolatedExceptionTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- AssumptionViolatedExceptionTest.java 2 Jul 2007 18:11:20 -0000 1.1
+++ AssumptionViolatedExceptionTest.java 9 Jul 2007 18:49:22 -0000 1.2
@@ -1,10 +1,9 @@
package org.junit.experimental.theories.test.assertion;
+import static org.junit.experimental.theories.matchers.api.StringContains.containsString;
import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.Matchers.hasToString;
import static org.junit.Assert.assertThat;
import org.hamcrest.Matcher;
-import org.hamcrest.Matchers;
import org.hamcrest.StringDescription;
import org.junit.Test;
import org.junit.Assume.AssumptionViolatedException;
@@ -21,7 +20,7 @@
@Theory
public void toStringIsUseful(Object actual, Matcher<?> matcher) {
assertThat(new AssumptionViolatedException(actual, matcher).toString(),
- hasToString(Matchers.containsString(matcher.toString())));
+ containsString(matcher.toString()));
}
@Test
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/