Examples of Jaxme72


Examples of org.apache.ws.jaxme.test.jira72.Jaxme72

  /** Test for <a href="http://issues.apache.org/jira/browse/JAXME-72">JAXME-72</a>.
   */
  public void testJAXME72() throws JAXBException {
    // create test structure
    org.apache.ws.jaxme.test.jira72.ObjectFactory oFact = new org.apache.ws.jaxme.test.jira72.ObjectFactory();
    Jaxme72 jaxme72  = oFact.createJaxme72();
    QName qName = new QName("http://this.namespace/must/be/declared", "jaxme72");
    jaxme72.setTest(qName);
    // try to marshal it...Jira issue 72 address the problem that this will fail.
    JAXBContext ctx = JAXBContext.newInstance("org.apache.ws.jaxme.test.jira72");
    StringWriter sw = new StringWriter();
    ctx.createMarshaller().marshal(jaxme72, sw);
    // if we get this far issue 72 shoulb be fixed. just to be sure - unmarshal and compare QNames.
    Jaxme72 jaxme72Clone = (Jaxme72) ctx.createUnmarshaller().unmarshal(new InputSource(new StringReader(sw.toString())));
    assertEquals(jaxme72.getTest(),jaxme72Clone.getTest());
  }
View Full Code Here

Examples of org.apache.ws.jaxme.test.jira72.Jaxme72

  /** Test for <a href="http://issues.apache.org/jira/browse/JAXME-72">JAXME-72</a>.
   */
  public void testJAXME72() throws JAXBException {
    // create test structure
    org.apache.ws.jaxme.test.jira72.ObjectFactory oFact = new org.apache.ws.jaxme.test.jira72.ObjectFactory();
    Jaxme72 jaxme72  = oFact.createJaxme72();
    QName qName = new QName("http://this.namespace/must/be/declared", "jaxme72");
    jaxme72.setTest(qName);
    // try to marshal it...Jira issue 72 address the problem that this will fail.
    JAXBContext ctx = JAXBContext.newInstance("org.apache.ws.jaxme.test.jira72");
    StringWriter sw = new StringWriter();
    ctx.createMarshaller().marshal(jaxme72, sw);
    // if we get this far issue 72 shoulb be fixed. just to be sure - unmarshal and compare QNames.
    Jaxme72 jaxme72Clone = (Jaxme72) ctx.createUnmarshaller().unmarshal(new InputSource(new StringReader(sw.toString())));
    assertEquals(jaxme72.getTest(),jaxme72Clone.getTest());
  }
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.