java.lang.Object
test.de.iip_ecosphere.platform.configuration.opcua.DomParserTest

public class DomParserTest extends Object
Tests DomParser.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • DomParserTest

      public DomParserTest()
  • Method Details

    • testDomParserMachineTool

      public void testDomParserMachineTool() throws IOException
      Tests DomParser on the machine tool companion spec XML.
      Throws:
      IOException - shall not occur
    • testDomParserWoodworking

      public void testDomParserWoodworking() throws IOException
      Tests DomParser on the woodworking companion spec XML.
      Throws:
      IOException - shall not occur
    • printCharDiff

      static void printCharDiff(String exContents, String outContents)
      Helper function to indicate char differences to apply when string comparison fails.
      Parameters:
      exContents - the expected contents
      outContents - the actual contents
    • normalize

      private static String normalize(String text)
      Normalizes unicode/UTF-8 strings for comparison (heuristics). This is just a hack. Any normalization solution solving that problem is welcome.
      Parameters:
      text - the text to be normalized
      Returns:
      the normalized text