rdonkin     2004/01/14 14:51:35

  Modified:    betwixt  Tag: REFACTORING-BRANCH_2004-01-13 LICENSE.txt
               betwixt/src/test/org/apache/commons/betwixt/recursion Tag:
                        REFACTORING-BRANCH_2004-01-13 TestRecursion.java
  Added:       betwixt/src/test/org/apache/commons/betwixt/recursion Tag:
                        REFACTORING-BRANCH_2004-01-13 AddressTest.java
  Log:
  Test for simple property bug in head. Submitted by Brian.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.2.1   +1 -1      jakarta-commons/betwixt/LICENSE.txt
  
  Index: LICENSE.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/LICENSE.txt,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- LICENSE.txt       9 Oct 2003 20:52:03 -0000       1.5
  +++ LICENSE.txt       14 Jan 2004 22:51:35 -0000      1.5.2.1
  @@ -7,7 +7,7 @@
    * 
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2004 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  
  
  
  No                   revision
  No                   revision
  1.13.2.1  +32 -4     
jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/recursion/TestRecursion.java
  
  Index: TestRecursion.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/recursion/TestRecursion.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- TestRecursion.java        19 Oct 2003 14:44:54 -0000      1.13
  +++ TestRecursion.java        14 Jan 2004 22:51:35 -0000      1.13.2.1
  @@ -350,5 +350,33 @@
               // that's what we expected!
           }
       }  
  +    
  +    
  +     /** Tests for a stack overflow bug */
  +     public void testRegisterOverflow() throws Exception {
  +             BeanReader reader = new BeanReader();
  +             try
  +             {
  +                     reader.registerBeanClass(NorthWind.class);
  +             }
  +             catch (StackOverflowError e)
  +             {
  +                     e.printStackTrace();
  +                     fail("Expected registration to succeed");
  +             }
  +     }
  +    
  +     public void testRegisterOverflow2() throws Exception {
  +             BeanReader beanReader = new BeanReader();
  +             try
  +             {
  +                     beanReader.registerBeanClass(PersonTest.class);
  +             }
  +             catch (StackOverflowError e)
  +             {
  +                     e.printStackTrace();
  +                     fail("Expected registration to succeed");
  +             }
  +     }
   }
   
  
  
  
  No                   revision
  
  Index: TestRecursion.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/recursion/TestRecursion.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- TestRecursion.java        19 Oct 2003 14:44:54 -0000      1.13
  +++ TestRecursion.java        14 Jan 2004 22:51:35 -0000      1.13.2.1
  @@ -350,5 +350,33 @@
               // that's what we expected!
           }
       }  
  +    
  +    
  +     /** Tests for a stack overflow bug */
  +     public void testRegisterOverflow() throws Exception {
  +             BeanReader reader = new BeanReader();
  +             try
  +             {
  +                     reader.registerBeanClass(NorthWind.class);
  +             }
  +             catch (StackOverflowError e)
  +             {
  +                     e.printStackTrace();
  +                     fail("Expected registration to succeed");
  +             }
  +     }
  +    
  +     public void testRegisterOverflow2() throws Exception {
  +             BeanReader beanReader = new BeanReader();
  +             try
  +             {
  +                     beanReader.registerBeanClass(PersonTest.class);
  +             }
  +             catch (StackOverflowError e)
  +             {
  +                     e.printStackTrace();
  +                     fail("Expected registration to succeed");
  +             }
  +     }
   }
   
  
  
  
  No                   revision
  
  Index: TestRecursion.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/recursion/TestRecursion.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- TestRecursion.java        19 Oct 2003 14:44:54 -0000      1.13
  +++ TestRecursion.java        14 Jan 2004 22:51:35 -0000      1.13.2.1
  @@ -350,5 +350,33 @@
               // that's what we expected!
           }
       }  
  +    
  +    
  +     /** Tests for a stack overflow bug */
  +     public void testRegisterOverflow() throws Exception {
  +             BeanReader reader = new BeanReader();
  +             try
  +             {
  +                     reader.registerBeanClass(NorthWind.class);
  +             }
  +             catch (StackOverflowError e)
  +             {
  +                     e.printStackTrace();
  +                     fail("Expected registration to succeed");
  +             }
  +     }
  +    
  +     public void testRegisterOverflow2() throws Exception {
  +             BeanReader beanReader = new BeanReader();
  +             try
  +             {
  +                     beanReader.registerBeanClass(PersonTest.class);
  +             }
  +             catch (StackOverflowError e)
  +             {
  +                     e.printStackTrace();
  +                     fail("Expected registration to succeed");
  +             }
  +     }
   }
   
  
  
  
  1.1.2.1   +80 -0     
jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/recursion/Attic/AddressTest.java
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to