Examples of CastorMarshaller


Examples of org.springframework.oxm.castor.CastorMarshaller

    assertNotNull(jaxb2Marshaller);
  }

  @Test
  public void castorEncodingMarshaller() throws Exception {
    CastorMarshaller castorMarshaller = applicationContext.getBean("castorEncodingMarshaller", CastorMarshaller.class);
    assertNotNull(castorMarshaller);
  }
View Full Code Here

Examples of org.springframework.oxm.castor.CastorMarshaller

    assertNotNull(castorMarshaller);
  }

  @Test
  public void castorTargetClassMarshaller() throws Exception {
    CastorMarshaller castorMarshaller = applicationContext.getBean("castorTargetClassMarshaller", CastorMarshaller.class);
    assertNotNull(castorMarshaller);
  }
View Full Code Here

Examples of org.springframework.oxm.castor.CastorMarshaller

    assertNotNull(castorMarshaller);
  }

  @Test
  public void castorTargetPackageMarshaller() throws Exception {
    CastorMarshaller castorMarshaller = applicationContext.getBean("castorTargetPackageMarshaller", CastorMarshaller.class);
    assertNotNull(castorMarshaller);
  }
View Full Code Here

Examples of org.springframework.oxm.castor.CastorMarshaller

    assertNotNull(castorMarshaller);
  }

  @Test
  public void castorMappingLocationMarshaller() throws Exception {
    CastorMarshaller castorMarshaller = applicationContext.getBean("castorMappingLocationMarshaller", CastorMarshaller.class);
    assertNotNull(castorMarshaller);
  }
View Full Code Here

Examples of org.springframework.oxm.castor.CastorMarshaller

public class CastorUnmarshallingTests extends AbstractStaxEventReaderItemReaderTests {

  @Override
  protected Unmarshaller getUnmarshaller() throws Exception {
    CastorMarshaller unmarshaller = new CastorMarshaller();
    unmarshaller.setMappingLocation(new ClassPathResource("mapping-castor.xml", getClass()));
    // alternatively target class can be set
    //unmarshaller.setTargetClass(Trade.class);
    unmarshaller.afterPropertiesSet();
    return unmarshaller;
  }
View Full Code Here

Examples of org.springframework.oxm.castor.CastorMarshaller

public class CastorMarshallingTests extends AbstractStaxEventWriterItemWriterTests {

  @Override
  protected Marshaller getMarshaller() throws Exception {

    CastorMarshaller marshaller = new CastorMarshaller();
    // marshaller.setTargetClass(Trade.class);
    marshaller.setMappingLocation(new ClassPathResource("mapping-castor.xml", getClass()));
    // there is no way to call
    // org.exolab.castor.xml.Marshaller.setSupressXMLDeclaration();
    marshaller.afterPropertiesSet();
    return marshaller;
  }
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.