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/06/01 04:01:35 UTC

cvs commit: jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/scarab TestScarabSettings.java scarab-settings.xml

jvanzyl     2002/05/31 19:01:35

  Modified:    betwixt/src/test/org/apache/commons/betwixt/scarab
                        TestScarabSettings.java scarab-settings.xml
  Log:
  Minimal scarab mapping tests are now working.
  
  Revision  Changes    Path
  1.2       +8 -8      jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/scarab/TestScarabSettings.java
  
  Index: TestScarabSettings.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/scarab/TestScarabSettings.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestScarabSettings.java	1 Jun 2002 01:40:19 -0000	1.1
  +++ TestScarabSettings.java	1 Jun 2002 02:01:35 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/scarab/TestScarabSettings.java,v 1.1 2002/06/01 01:40:19 jvanzyl Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/06/01 01:40:19 $
  + * $Header: /home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/scarab/TestScarabSettings.java,v 1.2 2002/06/01 02:01:35 jvanzyl Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/06/01 02:01:35 $
    *
    * ====================================================================
    *
  @@ -57,7 +57,7 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    *
  - * $Id: TestScarabSettings.java,v 1.1 2002/06/01 01:40:19 jvanzyl Exp $
  + * $Id: TestScarabSettings.java,v 1.2 2002/06/01 02:01:35 jvanzyl Exp $
    */
   package org.apache.commons.betwixt.scarab;
   
  @@ -89,7 +89,7 @@
    * Test harness which round trips a Scarab's settings xml file
    *
    * @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public class TestScarabSettings extends AbstractTestCase
   {
  @@ -193,9 +193,9 @@
       protected void testScarabSettings(ScarabSettings ss)
           throws Exception
       {
  -        //List globalAttributes = ss.getGlobalAttributes();
  -        //GlobalAttribute ga = (GlobalAttribute) globalAttributes.get(0);
  -        //assertEquals("Description", ga.getName());
  +        List globalAttributes = ss.getGlobalAttributes();
  +        GlobalAttribute ga = (GlobalAttribute) globalAttributes.get(0);
  +        assertEquals("Description", ga.getName());
           
           List modules = ss.getModules();
           Module m = (Module) modules.get(0);
  
  
  
  1.3       +44 -42    jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/scarab/scarab-settings.xml
  
  Index: scarab-settings.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/scarab/scarab-settings.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- scarab-settings.xml	1 Jun 2002 01:40:19 -0000	1.2
  +++ scarab-settings.xml	1 Jun 2002 02:01:35 -0000	1.3
  @@ -6,52 +6,54 @@
   
   <scarab-settings>
     
  -  <global-attribute>
  -    <name>Description</name>
  -    <type>long-string</type>
  -    <description>Description</description>
  -    <created-date format="yyyy-MM-dd HH:mm:ss">2002-05-31 13:29:27.0</created-date>
  -  </global-attribute>
  +  <global-attributes>
  +    <global-attribute>
  +      <name>Description</name>
  +      <type>long-string</type>
  +      <description>Description</description>
  +      <created-date format="yyyy-MM-dd HH:mm:ss">2002-05-31 13:29:27.0</created-date>
  +    </global-attribute>
     
  -  <global-attribute>
  -    <name>Functional area</name>
  -    <type>Dropdown list</type>
  -    <description>Functional area</description>
  -    <created-date format="yyyy-MM-dd HH:mm:ss">2002-05-31 13:29:27.0</created-date>
  -    <global-attribute-option>
  -      <name>Root</name>
  -      <deleted>false</deleted>
  -      <child-option>UI</child-option>
  -      <weight>1</weight>
  -      <preferred-order>1</preferred-order>
  -    </global-attribute-option>
  -  </global-attribute>
  -    
  -  <global-issue-type>
  -    <name>Defect</name>
  -    <description>An issue in existing feature/functionality.</description>
  -    <template>Defect Template</template>
  -  </global-issue-type>
  +    <global-attribute>
  +      <name>Functional area</name>
  +      <type>Dropdown list</type>
  +      <description>Functional area</description>
  +      <created-date format="yyyy-MM-dd HH:mm:ss">2002-05-31 13:29:27.0</created-date>
  +      <global-attribute-option>
  +        <name>Root</name>
  +        <deleted>false</deleted>
  +        <child-option>UI</child-option>
  +        <weight>1</weight>
  +        <preferred-order>1</preferred-order>
  +      </global-attribute-option>
  +    </global-attribute>
  +  </global-attributes>
     
  -  <global-issue-type>
  -    <name>Enhancement</name>
  -    <description>Improvement to an existing feature.</description>
  -    <template>Enhancement Template</template>
  -  </global-issue-type>
  +  <global-issue-types>
  +    <global-issue-type>
  +      <name>Defect</name>
  +      <description>An issue in existing feature/functionality.</description>
  +      <template>Defect Template</template>
  +    </global-issue-type>
     
  -  <modules>
  +    <global-issue-type>
  +      <name>Enhancement</name>
  +      <description>Improvement to an existing feature.</description>
  +      <template>Enhancement Template</template>
  +    </global-issue-type>
  +  <global-issue-types>
     
  -  <module>
  -    <id>5</id>
  -    <parent>1</parent>
  -    <name>Source</name>
  -    <owner-id>turbine@tigris.org</owner-id>
  -    <description>Source</description>
  -    <url>/PacmanJVM/source/</url>
  -    <domain></domain>
  -    <code>PACS</code>
  -  </module>
  -
  +  <modules>
  +    <module>
  +      <id>5</id>
  +      <parent>1</parent>
  +      <name>Source</name>
  +      <owner-id>turbine@tigris.org</owner-id>
  +      <description>Source</description>
  +      <url>/PacmanJVM/source/</url>
  +      <domain></domain>
  +      <code>PACS</code>
  +    </module>
     </modules>
     
   </scarab-settings>
  
  
  

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