harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r583671 - /harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/server/ServerCloneExceptionTest.java
Date Thu, 11 Oct 2007 02:40:34 GMT
Author: smishura
Date: Wed Oct 10 19:40:33 2007
New Revision: 583671

URL: http://svn.apache.org/viewvc?rev=583671&view=rev
Log:
Fix ServerCloneExceptionTest.test_Constructor_String:
according to the spec - IllegalArgumentException is thrown when 'a throwable its own cause'

Modified:
    harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/server/ServerCloneExceptionTest.java

Modified: harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/server/ServerCloneExceptionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/server/ServerCloneExceptionTest.java?rev=583671&r1=583670&r2=583671&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/server/ServerCloneExceptionTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/server/ServerCloneExceptionTest.java
Wed Oct 10 19:40:33 2007
@@ -68,7 +68,8 @@
         assertNull(e.detail);
         try {
             e.initCause(e);
-        } catch (IllegalStateException exception) {
+            fail("No expected IllegalArgumentException");
+        } catch (IllegalArgumentException exception) {
             // expected
         }
     }



Mime
View raw message