Examples of XmlBeansMarshaller


Examples of org.springframework.oxm.xmlbeans.XmlBeansMarshaller

    applicationContext = new ClassPathXmlApplicationContext("oxmNamespaceHandlerTest.xml", getClass());
  }

  @Test
  public void xmlBeansMarshaller() throws Exception {
    XmlBeansMarshaller marshaller = applicationContext.getBean("xmlBeansMarshaller", XmlBeansMarshaller.class);
    XmlOptions options = marshaller.getXmlOptions();
    assertNotNull("Options not set", options);
    assertTrue("option not set", options.hasOption("SAVE_PRETTY_PRINT"));
    assertEquals("option not set", "true", options.get("SAVE_PRETTY_PRINT"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.