commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/test/org/apache/commons/betwixt LoopBean.java
Date Thu, 10 Jul 2003 20:23:07 GMT
rdonkin     2003/07/10 13:23:07

  Modified:    betwixt/src/test/org/apache/commons/betwixt LoopBean.java
  Log:
  Added some methods to improve unit tests
  
  Revision  Changes    Path
  1.4       +37 -0     jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/LoopBean.java
  
  Index: LoopBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/LoopBean.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LoopBean.java	11 Jan 2003 10:38:55 -0000	1.3
  +++ LoopBean.java	10 Jul 2003 20:23:07 -0000	1.4
  @@ -116,6 +116,43 @@
       }
       
       
  +    public static final LoopBean createNotEmptyNoLoopExampleBean()
  +    {
  +        LoopBean root = new LoopBean("");
  +        LoopBean levelOne = new LoopBean("");
  +        LoopBean levelTwo = new LoopBean("");
  +        LoopBean levelThree = new LoopBean("");
  +        LoopBean levelFour = new LoopBean("");
  +        LoopBean levelFive = new LoopBean("Not Empty");
  +        
  +        root.setFriend(levelOne);
  +        levelOne.setFriend(levelTwo);
  +        levelTwo.setFriend(levelThree);
  +        levelThree.setFriend(levelFour);
  +        levelFour.setFriend(levelFive);
  +        
  +        return root;
  +    }
  +    
  +    public static final LoopBean createEmptyLoopExampleBean()
  +    {
  +        LoopBean root = new LoopBean("");
  +        LoopBean levelOne = new LoopBean("");
  +        LoopBean levelTwo = new LoopBean("");
  +        LoopBean levelThree = new LoopBean("");
  +        LoopBean levelFour = new LoopBean("");
  +        LoopBean levelFive = new LoopBean("");
  +        
  +        root.setFriend(levelOne);
  +        levelOne.setFriend(levelTwo);
  +        levelTwo.setFriend(levelThree);
  +        levelThree.setFriend(levelFour);
  +        levelFour.setFriend(levelFive);
  +        levelFive.setFriend(root);
  +        
  +        return root;
  +    }
  +    
       public static final LoopBean createIdOnlyLoopExampleBean()
       {
           LoopBean root = new LoopBean("Root");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message