Package nexj.core.meta.integration

Examples of nexj.core.meta.integration.MessageTable.addMessage()


   {
      MessageTable table = new MessageTable();

      table.addMessage(m_adtA04);
      table.addMessage(getMetadata().getMessage("HL7_A_B"));
      table.addMessage(getMetadata().getMessage("HL7_A"));
      m_parser.initializeMessageTable(table);

      TransferObject tobj = m_parser.parse(new StringInput(ADT_A04), table);

      assertEquals("HL7_25_ADT_A04", tobj.getClassName());
View Full Code Here


   public void testParseInputMessageTable()
   {
      MessageTable table = new MessageTable();

      table.addMessage(m_patient);
      table.addMessage(m_xds);

      m_parser.initializeMessageTable(table);

      TransferObject tobj = m_parser.parse(new StringInput(PATIENT), table);
View Full Code Here

   public void testParseInputMessageTable()
   {
      MessageTable table = new MessageTable();

      table.addMessage(m_patient);
      table.addMessage(m_xds);

      m_parser.initializeMessageTable(table);

      TransferObject tobj = m_parser.parse(new StringInput(PATIENT), table);
      TransferObject player = (TransferObject)tobj.getValue("player");
View Full Code Here

      assertEquals("XML_PatientDemographics", tobj.getClassName());
      assertEquals("OHIP", id.getValue("type"));
      assertEquals("111222333", id.getValue("id"));

      table = new MessageTable();
      table.addMessage(m_patientSOAP);

      m_parser.initializeMessageTable(table);

      tobj = m_parser.parse(new StringInput(PATIENT_SOAP), table);
      player = (TransferObject)tobj.getValue("player");
View Full Code Here

         assertEquals("This is a minor SOAP fault", e.getFaultString());
         assertEquals("not-me", e.getFaultActor());
      }

      // Try parsing a message that is mapped to SOAP Fault
      table.addMessage(m_faultMessage);
      m_parser.initializeMessageTable(table);
      tobj = m_parser.parse(new StringInput(SOAP_FAULT), table);
      assertEquals(m_faultMessage.getName(), tobj.getClassName());
      assertEquals("123", tobj.getValue("code"));
      assertEquals("This is a minor SOAP fault", tobj.getValue("msg"));
View Full Code Here

   public void testParseSOAPHeadersMessageTable() throws Exception
   {
      TransferObject message;
      MessageTable table = new MessageTable();

      table.addMessage(m_patientHeadersSOAP);
      table.addMessage(m_SOAPMessage2);

      m_parser.initializeMessageTable(table);
      message = m_parser.parse(new StringInput(PATIENT_SOAP_HEADERS), table);
      verifyPatientSOAPMessage(message);
View Full Code Here

   {
      TransferObject message;
      MessageTable table = new MessageTable();

      table.addMessage(m_patientHeadersSOAP);
      table.addMessage(m_SOAPMessage2);

      m_parser.initializeMessageTable(table);
      message = m_parser.parse(new StringInput(PATIENT_SOAP_HEADERS), table);
      verifyPatientSOAPMessage(message);
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.