Examples of TextSection


Examples of uk.nhs.interoperability.payloads.templates.TextSection

  }
 
  @Test
  public void testParse() {
    String expectedResult = loadExpectedResult("/TestData/Templates/COCD_TP146229GB01_AH_01.xml", true);
    TextSection template = new TextSection();
    template.parse(expectedResult, parentNamespaces);
    List<Section2> s2List = template.getSection2();
    Section2 s2 = s2List.get(0);
    System.out.println("TEXT = '" + s2.getText() + "'");
    assertEquals("<content ID=\"a4\" xmlns=\"urn:hl7-org:v3\">Anticipatory medicine box is issued and kept in refrigerator at patient home.</content>", s2.getText().trim());
  }
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.TextSection

  }
 
  @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);
  }
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.TextSection

  }
 
  @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);
  }
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.TextSection

  }
 
  @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.