You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jv...@apache.org on 2002/03/10 21:16:03 UTC

cvs commit: jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project BaseObject.java TestProjectRoundTrip.java

jvanzyl     02/03/10 12:16:03

  Modified:    betwixt/src/test/org/apache/commons/betwixt/project
                        BaseObject.java TestProjectRoundTrip.java
  Log:
  This is as close as I can get without changing any code:
  
  You seem to need:
  
  <developerList>
    <Developer>
    ...
    </Developer>
  </developerList>
  
  In order to strike a match, possibly an error on my part but using
  <DeveloperList> didn't seem to trigger the firing of an addXXX() method.
  
  Also, even though the addDeveloper(Developer) method is correctly found
  an attempt to use addDeveloper(ArrayList) is made because the return
  type for getDeveloperList is an ArrayList.
  
  There also seemed to be problems when the return type was an interface like
  List.
  
  Just trying to report of what I'm finding ... Hopefully I will be of some help
  in the coming days.
  
  Revision  Changes    Path
  1.2       +3 -1      jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project/BaseObject.java
  
  Index: BaseObject.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/project/BaseObject.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BaseObject.java	10 Mar 2002 19:35:28 -0000	1.1
  +++ BaseObject.java	10 Mar 2002 20:16:03 -0000	1.2
  @@ -56,7 +56,7 @@
   
    /**
    * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  - * @version $Id: BaseObject.java,v 1.1 2002/03/10 19:35:28 jvanzyl Exp $
  + * @version $Id: BaseObject.java,v 1.2 2002/03/10 20:16:03 jvanzyl Exp $
    */
   public class BaseObject
   {
  @@ -105,8 +105,10 @@
       /**
        * Description of the Method
        */
  +     /*
       public String toString()
       {
           return name;
       }
  +    */
   }
  
  
  
  1.3       +5 -4      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestProjectRoundTrip.java	10 Mar 2002 19:38:49 -0000	1.2
  +++ TestProjectRoundTrip.java	10 Mar 2002 20:16:03 -0000	1.3
  @@ -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.2 2002/03/10 19:38:49 jvanzyl Exp $
  + * $Id: TestProjectRoundTrip.java,v 1.3 2002/03/10 20:16:03 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.2 $
  +  * @version $Revision: 1.3 $
     */
   public class TestProjectRoundTrip extends TestCase {
       
  @@ -56,13 +56,14 @@
               assertEquals("jakarta-turbine-maven", project.getName());
               assertEquals("org.apache.maven", project.getPackage());
               
  -            //assertEquals("jason@zenplex.com", 
  -            //    ((Developer)project.getDeveloperList().get(0)).getEmail());
  +            assertEquals("jason@zenplex.com", 
  +                ((Developer)project.getDeveloperList().get(0)).getEmail());
               
               //writeBean( project );
           }
           catch (Exception e)
           {
  +            e.printStackTrace();
               fail();
           }            
           finally {
  
  
  

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