commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project Project.java TestProjectRoundTrip.java
Date Mon, 15 Apr 2002 00:22:49 GMT
jvanzyl     02/04/14 17:22:49

  Modified:    betwixt/src/test/org/apache/commons/betwixt/project
                        Project.java TestProjectRoundTrip.java
  Removed:     betwixt/src/test/org/apache/commons/betwixt
                        TestProjectRoundTrip.java
  Log:
  Had a test in the wrong place and discovered that the defaultAddMethods
  mechanism isn't working properly. Working on fixing it.
  
  Revision  Changes    Path
  1.3       +10 -5     jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project/Project.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Project.java	10 Mar 2002 19:38:49 -0000	1.2
  +++ Project.java	15 Apr 2002 00:22:49 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project/Project.java,v
1.2 2002/03/10 19:38:49 jvanzyl Exp $
  - * $Revision: 1.2 $
  - * $Date: 2002/03/10 19:38:49 $
  + * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project/Project.java,v
1.3 2002/04/15 00:22:49 jvanzyl Exp $
  + * $Revision: 1.3 $
  + * $Date: 2002/04/15 00:22:49 $
    *
    * ====================================================================
    *
  @@ -57,7 +57,7 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    * 
  - * $Id: Project.java,v 1.2 2002/03/10 19:38:49 jvanzyl Exp $
  + * $Id: Project.java,v 1.3 2002/04/15 00:22:49 jvanzyl Exp $
    */
   package org.apache.commons.betwixt.project;
   
  @@ -76,7 +76,7 @@
   /** <p><code>Project</code> is a sample bean for use by the test cases.</p>
     *
     * @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
  -  * @version $Revision: 1.2 $
  +  * @version $Revision: 1.3 $
     */
   public class Project
       extends BaseObject
  @@ -118,6 +118,11 @@
       {
           this.developerList = developerList;
       }
  +    
  +    public Developer getDeveloper(int i)
  +    {
  +        return (Developer) developerList.get(i);
  +    }        
       
       public ArrayList getDeveloperList()
       {
  
  
  
  1.4       +6 -3      jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project/TestProjectRoundTrip.java
  
  Index: TestProjectRoundTrip.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project/TestProjectRoundTrip.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestProjectRoundTrip.java	10 Mar 2002 20:16:03 -0000	1.3
  +++ TestProjectRoundTrip.java	15 Apr 2002 00:22:49 -0000	1.4
  @@ -5,7 +5,7 @@
    * version 1.1, a copy of which has been included with this distribution in
    * the LICENSE file.
    * 
  - * $Id: TestProjectRoundTrip.java,v 1.3 2002/03/10 20:16:03 jvanzyl Exp $
  + * $Id: TestProjectRoundTrip.java,v 1.4 2002/04/15 00:22:49 jvanzyl Exp $
    */
   package org.apache.commons.betwixt.project;
   
  @@ -28,7 +28,7 @@
   /** Test harness for the BeanReader that deals with project definitions.
     *
     * @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
  -  * @version $Revision: 1.3 $
  +  * @version $Revision: 1.4 $
     */
   public class TestProjectRoundTrip extends TestCase {
       
  @@ -56,10 +56,13 @@
               assertEquals("jakarta-turbine-maven", project.getName());
               assertEquals("org.apache.maven", project.getPackage());
               
  +            Developer d = project.getDeveloper(0);
  +            System.err.println("!!!!! " + d.getEmail());
  +            
               assertEquals("jason@zenplex.com", 
                   ((Developer)project.getDeveloperList().get(0)).getEmail());
               
  -            //writeBean( project );
  +            writeBean( project );
           }
           catch (Exception e)
           {
  
  
  

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


Mime
View raw message