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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]