You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2009/07/14 11:14:27 UTC
svn commit: r793822 -
/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/JarURLConnectionTest.java
Author: hindessm
Date: Tue Jul 14 09:14:26 2009
New Revision: 793822
URL: http://svn.apache.org/viewvc?rev=793822&view=rev
Log:
Trivial junit usage improvement.
Modified:
harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/JarURLConnectionTest.java
Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/JarURLConnectionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/JarURLConnectionTest.java?rev=793822&r1=793821&r2=793822&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/JarURLConnectionTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/JarURLConnectionTest.java Tue Jul 14 09:14:26 2009
@@ -185,8 +185,9 @@
URL fileURL = new URL(BASE);
URL u = new URL("jar:"+BASE+"!/plus.bmp");
juc = (JarURLConnection) u.openConnection();
- assertTrue("Returned incorrect file URL", juc.getJarFileURL().equals(
- fileURL));
+ assertEquals("Returned incorrect file URL",
+ fileURL, juc.getJarFileURL());
+
// Regression test for harmony-3053
URL url = new URL("jar:file:///bar.jar!/foo.jar!/Bugs/HelloWorld.class");
assertEquals("file:/bar.jar",((JarURLConnection)url.openConnection()).getJarFileURL().toString());