pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1630527 - /pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSString.java
Date Thu, 09 Oct 2014 16:11:23 GMT
Author: tilman
Date: Thu Oct  9 16:11:23 2014
New Revision: 1630527

URL: http://svn.apache.org/r1630527
Log:
PDFBOX-2401: adjust test to last two commits

Modified:
    pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSString.java

Modified: pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSString.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSString.java?rev=1630527&r1=1630526&r2=1630527&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSString.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSString.java Thu
Oct  9 16:11:23 2014
@@ -422,9 +422,9 @@ public class TestCOSString extends TestC
         assertTrue(str1.hashCode() == str3.hashCode());
     }
     
-    /**
+   /**
      * Test testCompareFromHexString() - tests that Strings created from hex
-     * compare correctly (JDK bug PDFBOX-2401)
+     * compare correctly (PDFBOX-2401)
      */
     public void testCompareFromHexString() throws IOException
     {
@@ -436,8 +436,6 @@ public class TestCOSString extends TestC
         assertFalse(Arrays.equals(test1.getBytes(), test2.getBytes()));
         assertFalse(test1.equals(test2));
         assertFalse(test2.equals(test1));
-
-        // if this test fails, then the JDK bug has been fixed!
-        assertEquals(test1.getString(), test2.getString());
+        assertFalse(test1.getString().equals(test2.getString()));
     }
 }



Mime
View raw message