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 MapBean.java TestBeanReader.java
Date Mon, 14 Apr 2003 16:24:08 GMT
rdonkin     2003/04/14 09:24:05

  Modified:    betwixt/src/test/org/apache/commons/betwixt MapBean.java
                        TestBeanReader.java
  Log:
  Doh! Should have remembered to use a SortedMap to make sure that entry's come out in the
same order on all platforms!
  
  Revision  Changes    Path
  1.2       +7 -7      jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/MapBean.java
  
  Index: MapBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/MapBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MapBean.java	11 Apr 2003 21:29:46 -0000	1.1
  +++ MapBean.java	14 Apr 2003 16:24:04 -0000	1.2
  @@ -62,7 +62,7 @@
   package org.apache.commons.betwixt;
   
   import java.util.Map;
  -import java.util.HashMap;
  +import java.util.TreeMap;
   
   /** <p><code>MapBean</code> is a sample bean used for testing maps.</p>
     *
  @@ -73,7 +73,7 @@
       
       private String title = "**UNSET**";
       
  -    private Map addresses = new HashMap();
  +    private Map addresses = new TreeMap();
       
       public MapBean() {}
       
  
  
  
  1.12      +7 -4      jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/TestBeanReader.java
  
  Index: TestBeanReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/TestBeanReader.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TestBeanReader.java	11 Apr 2003 21:29:46 -0000	1.11
  +++ TestBeanReader.java	14 Apr 2003 16:24:05 -0000	1.12
  @@ -384,12 +384,15 @@
           System.out.println(out.toString());
           
           String xml = "<?xml version='1.0'?><address-book><title>drinkers</title>"
  -            + "<addresses><entry><key>Sid Gardner</key><value><country>United
Kingdom</country>"
  -            + "<code>BD18 2BJ</code><city>Shipley</city><street>Old
House At Home, Otley Road</street>"
  -            + "</value></entry><entry><key>Alex Compbell</key><value><country>United
Kingdom</country>"
  +            + "<addresses>"
  +            + "<entry><key>Alex Compbell</key><value><country>United
Kingdom</country>"
               + "<code>BD18 3QW</code><city>Shipley</city><street>5,
Kirkgate</street></value></entry>"
               + "<entry><key>Russell McManus</key><value><country>United
Kingdom</country><code>BD17 5EJ</code>"
  -            + "<city>Shipley</city><street>6, Westgate</street></value></entry></addresses></address-book>";
  +            + "<city>Shipley</city><street>6, Westgate</street></value></entry>"
  +            + "<entry><key>Sid Gardner</key><value><country>United
Kingdom</country>"
  +            + "<code>BD18 2BJ</code><city>Shipley</city><street>Old
House At Home, Otley Road</street>"
  +            + "</value></entry>"
  +            + "</addresses></address-book>";
           
           xmlAssertIsomorphic(parseString(out.toString()), parseString(xml), true);
           
  
  
  

---------------------------------------------------------------------
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