Class DomParserTest
java.lang.Object
test.de.iip_ecosphere.platform.configuration.opcua.DomParserTest
Tests
DomParser.- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringNormalizes unicode/UTF-8 strings for comparison (heuristics).(package private) static voidprintCharDiff(String exContents, String outContents) Helper function to indicate char differences to apply when string comparison fails.voidTestsDomParseron the machine tool companion spec XML.voidTestsDomParseron the woodworking companion spec XML.
-
Constructor Details
-
DomParserTest
public DomParserTest()
-
-
Method Details
-
testDomParserMachineTool
TestsDomParseron the machine tool companion spec XML.- Throws:
IOException- shall not occur
-
testDomParserWoodworking
TestsDomParseron the woodworking companion spec XML.- Throws:
IOException- shall not occur
-
printCharDiff
Helper function to indicate char differences to apply when string comparison fails.- Parameters:
exContents- the expected contentsoutContents- the actual contents
-
normalize
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
-