You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2004/01/15 22:57:59 UTC

cvs commit: jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/dotbetwixt TestXmlToBean.java

rdonkin     2004/01/15 13:57:59

  Modified:    betwixt/src/test/org/apache/commons/betwixt/dotbetwixt Tag:
                        REFACTORING-BRANCH_2004-01-13 TestXmlToBean.java
  Log:
  Costmetic tidying.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.2.2   +6 -6      jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/dotbetwixt/TestXmlToBean.java
  
  Index: TestXmlToBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/dotbetwixt/TestXmlToBean.java,v
  retrieving revision 1.7.2.1
  retrieving revision 1.7.2.2
  diff -u -r1.7.2.1 -r1.7.2.2
  --- TestXmlToBean.java	13 Jan 2004 21:49:46 -0000	1.7.2.1
  +++ TestXmlToBean.java	15 Jan 2004 21:57:59 -0000	1.7.2.2
  @@ -7,7 +7,7 @@
    * 
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2004 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -115,7 +115,7 @@
   //        log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
   //        XMLIntrospectorHelper.setLog(log);
           
  -        writer.setWriteIDs(false);
  +        writer.getBindingConfiguration().setMapIDs(false);
           writer.write(bean);
   
       	String xml = "<?xml version='1.0'?><mixed><name>Lov</name><bad-name>Hate</bad-name>"
  @@ -141,7 +141,7 @@
           
           // now we'll test reading via round tripping
           BeanReader reader = new BeanReader();
  -        reader.setMatchIDs(false);
  +        reader.getBindingConfiguration().setMapIDs(false);
           reader.registerBeanClass("mixed", MixedUpdatersBean.class);
           bean = (MixedUpdatersBean) reader.parse(new StringReader(xml));
           
  
  
  

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