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 2010/02/17 20:55:36 UTC

svn commit: r911159 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/TreeMapTest.java

Author: hindessm
Date: Wed Feb 17 19:55:36 2010
New Revision: 911159

URL: http://svn.apache.org/viewvc?rev=911159&view=rev
Log:
Fixing a few confusing failure messages.

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/TreeMapTest.java

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/TreeMapTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/TreeMapTest.java?rev=911159&r1=911158&r2=911159&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/TreeMapTest.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/TreeMapTest.java Wed Feb 17 19:55:36 2010
@@ -1033,7 +1033,7 @@
         }
         try {
             tm.lowerEntry(null);
-            fail("should throw ClassCastException");
+            fail("should throw NullPointerException");
         } catch (NullPointerException e) {
             // expected
         }
@@ -1066,7 +1066,7 @@
         }
         try {
             tm.lowerKey(null);
-            fail("should throw ClassCastException");
+            fail("should throw NullPointerException");
         } catch (NullPointerException e) {
             // expected
         }
@@ -1100,7 +1100,7 @@
         }
         try {
             tm.floorEntry(null);
-            fail("should throw ClassCastException");
+            fail("should throw NullPointerException");
         } catch (NullPointerException e) {
             // expected
         }
@@ -1133,7 +1133,7 @@
         }
         try {
             tm.floorKey(null);
-            fail("should throw ClassCastException");
+            fail("should throw NullPointerException");
         } catch (NullPointerException e) {
             // expected
         }
@@ -1166,7 +1166,7 @@
         }
         try {
             tm.ceilingEntry(null);
-            fail("should throw ClassCastException");
+            fail("should throw NullPointerException");
         } catch (NullPointerException e) {
             // expected
         }
@@ -1197,7 +1197,7 @@
         }
         try {
             tm.ceilingKey(null);
-            fail("should throw ClassCastException");
+            fail("should throw NullPointerException");
         } catch (NullPointerException e) {
             // expected
         }
@@ -1236,7 +1236,7 @@
         }
         try {
             tm.higherEntry(null);
-            fail("should throw ClassCastException");
+            fail("should throw NullPointerException");
         } catch (NullPointerException e) {
             // expected
         }