Package org.jboss.internal.soa.esb.message.format.xml

Examples of org.jboss.internal.soa.esb.message.format.xml.MessageImpl


    assertNotNull("created message", msg);

    try
    {
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      @SuppressWarnings("unused")
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
    }
    catch (Exception ex)
    {
      fail(ex.toString());
View Full Code Here


    try
    {
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      String val = new String((byte[]) nImpl.getBody().get(BytesBody.BYTES_LOCATION));
     
      assertEquals(val, testString);
    }
    catch (Exception ex)
    {     
View Full Code Here

    try
    {
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      ExampleObject foo = (ExampleObject) nImpl.getBody().get("foo");
     
      assertNotNull("deserialised example object", foo) ;
     
      assertEquals((foo.getValue() == value.getValue()), true);
    }
View Full Code Here

    try
    {
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      ExampleObject foo = (ExampleObject) nImpl.getBody().get("foo");
     
      assertNotNull("deserialised example object", foo) ;
     
      assertEquals((foo.getValue() == value.getValue()), true);
     
      names = nImpl.getBody().getNames();
     
      assertNotNull(names);
     
      assertEquals(names.length, 2)
     
View Full Code Here

    try
    {
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      ExampleObject foo = (ExampleObject) nImpl.getBody().get("bar");
     
      assertNull("deserialised example object", foo);
    }
    catch (Exception ex)
    {     
View Full Code Here

    try
    {
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof JMSEpr, true);
     
      assertEquals(((JMSEpr) theEpr).getConnectionFactory(), "bar");
    }
View Full Code Here

      msg.getHeader().getCall().setTo(epr);
     
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof HTTPEpr, true);
     
      assertEquals(theEpr.getURI().toString(), "http://www.foo.bar");
    }
View Full Code Here

      msg.getHeader().getCall().setTo(epr);
     
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof EmailEpr, true);
     
      assertEquals(((EmailEpr) theEpr).getPassword(), "password");
    }
View Full Code Here

      msg.getHeader().getCall().setTo(epr);
     
      final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
      log.debug("Document is "+xmlRepresentation);
     
      final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
     
      EPR theEpr = nImpl.getHeader().getCall().getTo();
     
      assertEquals(theEpr instanceof FTPEpr, true);
     
      assertEquals(((FTPEpr) theEpr).getPassive(), true);
    }
View Full Code Here

                        msg.getHeader().getCall().setTo(epr);
                       
                        final String xmlRepresentation = msgToXML((MessageImpl)msg) ;
                        log.debug("Document is "+xmlRepresentation);
                       
                        final MessageImpl nImpl = msgFromXML(xmlRepresentation) ;
                       
                        EPR theEpr = nImpl.getHeader().getCall().getTo();
                       
                        assertEquals(theEpr instanceof FTPSEpr, true);
                }
                catch (Exception ex)
                {                      
View Full Code Here

TOP

Related Classes of org.jboss.internal.soa.esb.message.format.xml.MessageImpl

Copyright © 2018 www.massapicom. 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.