harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r911159 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/TreeMapTest.java
Date Wed, 17 Feb 2010 19:55:36 GMT
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
         }



Mime
View raw message