Examples of serialise()


Examples of uk.nhs.interoperability.payloads.templates.AnticipatoryMedicineBoxIssueProcedure.serialise()

  @Test
  public void testRoundTrip() {
    String expectedResult = loadExpectedResult("/TestData/Templates/COCD_TP146418GB01_AH_01.xml", true);
    AnticipatoryMedicineBoxIssueProcedure template = new AnticipatoryMedicineBoxIssueProcedure();
    template.parse(expectedResult, parentNamespaces);
    String result = template.serialise("procedure", parentNamespaces);
    testXMLisSimilar("/TestData/Templates/COCD_TP146418GB01_AH_01.xml", result, true);
  }
}
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.TextSection.serialise()

  @Test
  public void testRoundTrip1() throws SAXException, IOException {
    String expectedResult = loadExpectedResult("/TestData/Templates/COCD_TP146229GB01_AH_01.xml", true);
    TextSection template = new TextSection();
    template.parse(expectedResult, parentNamespaces);
    String result = template.serialise("section", parentNamespaces);
    //FileWriter.writeFile("output.xml", result.getBytes());
    testXMLisSimilar("/TestData/Templates/COCD_TP146229GB01_AH_01.xml", result, true);
  }
 
  @Test
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.TextSection.serialise()

  @Test
  public void testRoundTrip2() throws SAXException, IOException {
    String expectedResult = loadExpectedResult("/TestData/Templates/COCD_TP146229GB01_AH_02.xml", true);
    TextSection template = new TextSection();
    template.parse(expectedResult, parentNamespaces);
    String result = template.serialise("section", parentNamespaces);
    //FileWriter.writeFile("output.xml", result.getBytes());
    testXMLisSimilar("/TestData/Templates/COCD_TP146229GB01_AH_02.xml", result, true);
  }
 
  @Test
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.TextSection.serialise()

  @Test
  public void testRoundTrip3() throws SAXException, IOException {
    String expectedResult = loadExpectedResult("/TestData/Templates/COCD_TP146229GB01_AH_03.xml", true);
    TextSection template = new TextSection();
    template.parse(expectedResult, parentNamespaces);
    String result = template.serialise("section", parentNamespaces);
    //FileWriter.writeFile("output.xml", result.getBytes());
    testXMLisSimilar("/TestData/Templates/COCD_TP146229GB01_AH_03.xml", result, true);
  }
}
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.