Commit 90c20e8d authored by jhargrave's avatar jhargrave

add various test cases based on error_invalid_xml_on_merge.xlf

parent 43011200
......@@ -58,6 +58,20 @@ public class RoundTripSimplifyXliffTkitsIT
}
}
@Test
public void xliffSingleFileInvalidXml() throws FileNotFoundException, URISyntaxException {
for (File file : IntegrationtestUtils.getTestFiles("/xliff/simple.xlf", Arrays.asList(".invalid_single"))) {
runTest(true, file, "okf_xliff", null);
}
}
@Test
public void xliffSingleFileInvalidFullXml() throws FileNotFoundException, URISyntaxException {
for (File file : IntegrationtestUtils.getTestFiles("/xliff/simple.xlf", Arrays.asList(".invalid_full_single"))) {
runTest(true, file, "okf_xliff", null);
}
}
@Test
public void xliffFiles() throws FileNotFoundException, URISyntaxException {
// run top level files (without config)
......
<?xml version="1.0"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:cms="urn:ixiasoft:dita-cms:xliff"
xmlns:xlf="urn:oasis:names:tc:xliff:document:1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2">
<file source-language="en-us" target-language="de-de" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>X<g cms:id="ul_xlf_ly4_xf" ctype="x-ul" id="w1ab1b5b1b1b2"> <g cms:ixia_locid="9" cms:translate="no" ctype="x-li" id="w1ab1b5b1b1b2b1">X x. Y y.</g> <g cms:ixia_locid="11" ctype="x-li" id="w1ab1b5b1b1b2b3">X x. Y <g cms:ixia_locid="12" cms:translate="no" ctype="x-uicontrol" id="w1ab1b5b1b1b2b3b1">X</g> Y <g cms:ixia_locid="13" cms:translate="no" ctype="x-uicontrol" id="w1ab1b5b1b1b2b3b3">X</g> Y <g cms:ixia_locid="14" cms:translate="no" ctype="x-uicontrol" id="w1ab1b5b1b1b2b3b5">X</g> Y <g cms:ixia_locid="15" cms:translate="no" ctype="x-uicontrol" id="w1ab1b5b1b1b2b3b7">O</g>.</g></g></source>
<target>X<g cms:id="ul_xlf_ly4_xf" ctype="x-ul" id="w1ab1b5b1b1b2"> <g cms:ixia_locid="9" cms:translate="no" ctype="x-li" id="w1ab1b5b1b1b2b1">X x. Y y.</g> <g cms:ixia_locid="11" ctype="x-li" id="w1ab1b5b1b1b2b3">X x. Y <g cms:ixia_locid="12" cms:translate="no" ctype="x-uicontrol" id="w1ab1b5b1b1b2b3b1">X</g> Y <g cms:ixia_locid="13" cms:translate="no" ctype="x-uicontrol" id="w1ab1b5b1b1b2b3b3">X</g> Y <g cms:ixia_locid="14" cms:translate="no" ctype="x-uicontrol" id="w1ab1b5b1b1b2b3b5">X</g> Y <g cms:ixia_locid="15" cms:translate="no" ctype="x-uicontrol" id="w1ab1b5b1b1b2b3b7">O</g>.</g></g></target>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
<?xml version="1.0"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:cms="urn:ixiasoft:dita-cms:xliff"
xmlns:xlf="urn:oasis:names:tc:xliff:document:1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2">
<file source-language="en-us" target-language="de-de" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
<source>X<g cms:id="ul_xlf_ly4_xf" ctype="x-ul" id="w1ab1b5b1b1b2"> <g cms:ixia_locid="9" cms:translate="no" ctype="x-li" id="w1ab1b5b1b1b2b1">X x. Y y.</g> </g></source>
<target>X<g cms:id="ul_xlf_ly4_xf" ctype="x-ul" id="w1ab1b5b1b1b2"> <g cms:ixia_locid="9" cms:translate="no" ctype="x-li" id="w1ab1b5b1b1b2b1">X x. Y y.</g> </g></target>
</trans-unit>
</body>
</file>
</xliff>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment