test_class.declarator: logger = Logger.getLogger(XmlBeanTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = Logger.getLogger(XmlBeanTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: ch-commons-xbean/src/test/java/com/cloudhopper/commons/xbean/XmlBeanTest.java
test_class.identifier: XmlBeanTest
test_case.body: @Test
      public void configureComplexWithPropertyNotFoundExceptionEnsureNoPropertiesChanged() throws Exception {
          // build xml
          StringBuilder string0 = new StringBuilder(200)
                  .append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n")
                  .append("<configuration>\n")
                  .append("   <url>http://www.google.com/</url>\n")
                  .append("   <server>\n")
                  .append("     <host>www2.google.com</host>\n")      // this should be changed
                  .append("     <port2>80</port2>\n")                 // this should cause an error to be thrown and caused "server" to not be saved
                  .append("   </server>\n")
                  .append("</configuration>")
                  .append("");
  
          // parse xml
          ByteArrayInputStream is = new ByteArrayInputStream(string0.toString().getBytes());
          XmlParser parser = new XmlParser();
          XmlParser.Node rootNode = parser.parse(is);
  
          // object we'll configure
          ComplexConfiguration config = new ComplexConfiguration();
  
          // configure it using default options
          XmlBean bean = new XmlBean();
  
          try {
              bean.configure(rootNode, config);
              Assert.fail("Configure should have failed");
          } catch (XmlBeanException e) {
              // ignore it
          }
  
          // server should remain the same
          Assert.assertNull(config.getServer());
          Assert.assertEquals("http://www.google.com/", config.url);
      }
test_case.class_method_signature: XmlBeanTest.configureComplexWithPropertyNotFoundExceptionEnsureNoPropertiesChanged()
test_case.full_signature: @Test public void configureComplexWithPropertyNotFoundExceptionEnsureNoPropertiesChanged()
test_case.identifier: configureComplexWithPropertyNotFoundExceptionEnsureNoPropertiesChanged
test_case.invocations: append append append append append append append append append getBytes toString parse configure fail assertNull getServer assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void configureComplexWithPropertyNotFoundExceptionEnsureNoPropertiesChanged()
focal_class.declarator: rootTag
focal_class.modifier: private
focal_class.original_string: private String rootTag;
focal_class.type: String
focal_class.var_name: rootTag
focal_class.declarator: accessPrivateProperties
focal_class.modifier: private
focal_class.original_string: private boolean accessPrivateProperties;
focal_class.type: boolean
focal_class.var_name: accessPrivateProperties
focal_class.file: ch-commons-xbean/src/main/java/com/cloudhopper/commons/xbean/XmlBean.java
focal_class.identifier: XmlBean
focal_class.class_method_signature: XmlBean.XmlBean()
focal_class.full_signature: public  XmlBean()
focal_class.identifier: XmlBean
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  XmlBean()
focal_class.class_method_signature: XmlBean.setRootTag(String value)
focal_class.full_signature: public void setRootTag(String value)
focal_class.identifier: setRootTag
focal_class.modifiers: public
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void setRootTag(String value)
focal_class.class_method_signature: XmlBean.setAccessPrivateProperties(boolean value)
focal_class.full_signature: public void setAccessPrivateProperties(boolean value)
focal_class.identifier: setAccessPrivateProperties
focal_class.modifiers: public
focal_class.parameters: (boolean value)
focal_class.return: void
focal_class.signature: void setAccessPrivateProperties(boolean value)
focal_class.class_method_signature: XmlBean.configure(String xml, Object obj)
focal_class.full_signature: public void configure(String xml, Object obj)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (String xml, Object obj)
focal_class.return: void
focal_class.signature: void configure(String xml, Object obj)
focal_class.class_method_signature: XmlBean.configure(String xml, Object obj, String xpath)
focal_class.full_signature: public void configure(String xml, Object obj, String xpath)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (String xml, Object obj, String xpath)
focal_class.return: void
focal_class.signature: void configure(String xml, Object obj, String xpath)
focal_class.class_method_signature: XmlBean.configure(InputStream in, Object obj)
focal_class.full_signature: public void configure(InputStream in, Object obj)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (InputStream in, Object obj)
focal_class.return: void
focal_class.signature: void configure(InputStream in, Object obj)
focal_class.class_method_signature: XmlBean.configure(InputStream in, Object obj, String xpath)
focal_class.full_signature: public void configure(InputStream in, Object obj, String xpath)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (InputStream in, Object obj, String xpath)
focal_class.return: void
focal_class.signature: void configure(InputStream in, Object obj, String xpath)
focal_class.class_method_signature: XmlBean.configure(File file, Object obj)
focal_class.full_signature: public void configure(File file, Object obj)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (File file, Object obj)
focal_class.return: void
focal_class.signature: void configure(File file, Object obj)
focal_class.class_method_signature: XmlBean.configure(File file, Object obj, String xpath)
focal_class.full_signature: public void configure(File file, Object obj, String xpath)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (File file, Object obj, String xpath)
focal_class.return: void
focal_class.signature: void configure(File file, Object obj, String xpath)
focal_class.class_method_signature: XmlBean.configure(XmlParser.Node rootNode, Object obj, String xpath)
focal_class.full_signature: public void configure(XmlParser.Node rootNode, Object obj, String xpath)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (XmlParser.Node rootNode, Object obj, String xpath)
focal_class.return: void
focal_class.signature: void configure(XmlParser.Node rootNode, Object obj, String xpath)
focal_class.class_method_signature: XmlBean.configure(XmlParser.Node rootNode, Object obj)
focal_class.full_signature: public void configure(XmlParser.Node rootNode, Object obj)
focal_class.identifier: configure
focal_class.modifiers: public
focal_class.parameters: (XmlParser.Node rootNode, Object obj)
focal_class.return: void
focal_class.signature: void configure(XmlParser.Node rootNode, Object obj)
focal_class.class_method_signature: XmlBean.doConfigure(XmlParser.Node rootNode, Object obj, HashMap<String,String> properties, boolean checkForDuplicates, CollectionHelper ch)
focal_class.full_signature: private void doConfigure(XmlParser.Node rootNode, Object obj, HashMap<String,String> properties, boolean checkForDuplicates, CollectionHelper ch)
focal_class.identifier: doConfigure
focal_class.modifiers: private
focal_class.parameters: (XmlParser.Node rootNode, Object obj, HashMap<String,String> properties, boolean checkForDuplicates, CollectionHelper ch)
focal_class.return: void
focal_class.signature: void doConfigure(XmlParser.Node rootNode, Object obj, HashMap<String,String> properties, boolean checkForDuplicates, CollectionHelper ch)
focal_class.class_method_signature: XmlBean.createCollectionHelper(XmlParser.Node node, Object obj, Object value, String propertyName, BeanProperty property, String valueAttrString, String keyAttrString)
focal_class.full_signature: public CollectionHelper createCollectionHelper(XmlParser.Node node, Object obj, Object value, String propertyName, BeanProperty property, String valueAttrString, String keyAttrString)
focal_class.identifier: createCollectionHelper
focal_class.modifiers: public
focal_class.parameters: (XmlParser.Node node, Object obj, Object value, String propertyName, BeanProperty property, String valueAttrString, String keyAttrString)
focal_class.return: CollectionHelper
focal_class.signature: CollectionHelper createCollectionHelper(XmlParser.Node node, Object obj, Object value, String propertyName, BeanProperty property, String valueAttrString, String keyAttrString)
focal_method.body: public void configure(String xml, Object obj) throws XmlBeanException, IOException, SAXException {
          configure(xml, obj, null);
      }
focal_method.class_method_signature: XmlBean.configure(String xml, Object obj)
focal_method.full_signature: public void configure(String xml, Object obj)
focal_method.identifier: configure
focal_method.invocations: configure
focal_method.modifiers: public
focal_method.parameters: (String xml, Object obj)
focal_method.return: void
focal_method.signature: void configure(String xml, Object obj)