You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2007/10/11 04:40:34 UTC

svn commit: r583671 - /harmony/enhanced/classlib/trunk/modules/rmi/src/test/api/java/org/apache/harmony/rmi/server/ServerCloneExceptionTest.java

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
         }
     }