Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-122551

XLIFF12TranslationInfoItemFieldValuesExporterTests failed on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.3.X, Master
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      2
    • OS:
      Windows 10

      Description

      Steps to Reproduce:

      1. Run integration tests in module translation-test on Windows.

      Actual Result:
      XLIFF12TranslationInfoItemFieldValuesExporterTests failed with error:

      org.junit.ComparisonFailure: expected:<...?xml version="1.0"?>[
      
      <xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" srcLang="en-US" trgLang="es-ES" version="2.0">
      	<file id="com.liferay.journal.model.JournalArticle:40734">
      		<unit id="title">
      			<segment>
      				<source><![CDATA[Test Article]]></source>
      				<target><![CDATA[Test Article]]></target>
      			</segment>
      		</unit>
      		<unit id="description">
      			<segment>
      				<source><![CDATA[]]></source>
      				<target><![CDATA[]]></target>
      			</segment>
      		</unit>
      		<unit id="HTML4acl">
      			<segment>
      				<source><![CDATA[<p>Some HTML</p>]]></source>
      				<target><![CDATA[<p>Un poco de HTML</p>]]></target>
      			</segment>
      		</unit>
      		<unit id="Text1gf6">
      			<segment>
      				<source><![CDATA[Some Text]]></source>
      				<target><![CDATA[Un poco de texto]]></target>
      			</segment>
      		</unit>
      		<unit id="Integer2cc6">
      			<segment>
      				<source><![CDATA[1]]></source>
      				<target><![CDATA[1]]></target>
      			</segment>
      		</unit>
      	</file>
      ]
      </xliff>> but was:<...?xml version="1.0"?>[
      
      <xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" srcLang="en-US" trgLang="es-ES" version="2.0">
      	<file id="com.liferay.journal.model.JournalArticle:40734">
      		<unit id="title">
      			<segment>
      				<source><![CDATA[Test Article]]></source>
      				<target><![CDATA[Test Article]]></target>
      			</segment>
      		</unit>
      		<unit id="description">
      			<segment>
      				<source><![CDATA[]]></source>
      				<target><![CDATA[]]></target>
      			</segment>
      		</unit>
      		<unit id="HTML4acl">
      			<segment>
      				<source><![CDATA[<p>Some HTML</p>]]></source>
      				<target><![CDATA[<p>Un poco de HTML</p>]]></target>
      			</segment>
      		</unit>
      		<unit id="Text1gf6">
      			<segment>
      				<source><![CDATA[Some Text]]></source>
      				<target><![CDATA[Un poco de texto]]></target>
      			</segment>
      		</unit>
      		<unit id="Integer2cc6">
      			<segment>
      				<source><![CDATA[1]]></source>
      				<target><![CDATA[1]]></target>
      			</segment>
      		</unit>
      	</file>]
      </xliff>>
      	at org.junit.Assert.assertEquals(Assert.java:115)
      	at org.junit.Assert.assertEquals(Assert.java:144)
      	at com.liferay.translation.exporter.test.XLIFF20TranslationInfoItemFieldValuesExporterTest.testExportReturnsTheXLIFFRepresentationOfAJournalArticle(XLIFF20TranslationInfoItemFieldValuesExporterTest.java:74)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:748)
      

      Notes:

      1. Tests passed on CI which are running on Linux, so this might be Windows specific issue.
      2. Full error please refer to the attached report.

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            summer.zhang Summer Zhang
            Participants of an Issue:
            Recent user:
            Summer Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              15 weeks, 2 days ago

                Packages

                Version Package