[utilities COMMIT] /spring-extensions/trunk/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java

noreply at shibboleth.net noreply at shibboleth.net
Thu Mar 6 13:34:40 EST 2014


Author: iay
Date: Thu Mar  6 13:34:39 2014
New Revision: 545

URL: http://svn.shibboleth.net/view/utilities?rev=545&view=rev
Log:
Use TestNG, not JUnit.

Modified:
    spring-extensions/trunk/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java

Modified: spring-extensions/trunk/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java
URL: http://svn.shibboleth.net/view/utilities/spring-extensions/trunk/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java?rev=545&r1=544&r2=545&view=diff
==============================================================================
--- spring-extensions/trunk/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java (original)
+++ spring-extensions/trunk/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java Thu Mar  6 13:34:39 2014
@@ -23,8 +23,8 @@
 
 import org.apache.http.client.HttpClient;
 import org.joda.time.DateTime;
-import org.junit.Assert;
 import org.springframework.core.io.ClassPathResource;
+import org.testng.Assert;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 
@@ -68,8 +68,8 @@
         final long size = child.contentLength();
         final String whenAsString = new DateTime(when).toString();
   
-        Assert.assertEquals("Expected date of " + whenAsString + " did not match)", 1205848652000L, when);
-        Assert.assertEquals("Size mismatch", 20784226L, size);
+        Assert.assertEquals(when, 1205848652000L, "Expected date of " + whenAsString + " did not match)");
+        Assert.assertEquals(size, 20784226L, "Size mismatch");
     }
     
 }



More information about the commits mailing list