You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2002/11/06 20:14:43 UTC

cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang/enum EnumTest.java

bayard      2002/11/06 11:14:43

  Modified:    lang/src/test/org/apache/commons/lang/enum EnumTest.java
  Log:
  getCause is 1.4 specific. Have replaced with getException.
  
  Revision  Changes    Path
  1.4       +4 -4      jakarta-commons/lang/src/test/org/apache/commons/lang/enum/EnumTest.java
  
  Index: EnumTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/enum/EnumTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- EnumTest.java	2 Nov 2002 13:17:06 -0000	1.3
  +++ EnumTest.java	6 Nov 2002 19:14:43 -0000	1.4
  @@ -160,7 +160,7 @@
               Broken1Enum.RED.getName();
               fail();
           } catch (ExceptionInInitializerError ex) {
  -            assertTrue(ex.getCause() instanceof IllegalArgumentException);
  +            assertTrue(ex.getException() instanceof IllegalArgumentException);
           }
       }
   
  @@ -169,7 +169,7 @@
               Broken2Enum.RED.getName();
               fail();
           } catch (ExceptionInInitializerError ex) {
  -            assertTrue(ex.getCause() instanceof IllegalArgumentException);
  +            assertTrue(ex.getException() instanceof IllegalArgumentException);
           }
       }
   
  @@ -178,7 +178,7 @@
               Broken3Enum.RED.getName();
               fail();
           } catch (ExceptionInInitializerError ex) {
  -            assertTrue(ex.getCause() instanceof IllegalArgumentException);
  +            assertTrue(ex.getException() instanceof IllegalArgumentException);
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>