You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Pierre Villard (JIRA)" <ji...@apache.org> on 2018/10/11 09:49:00 UTC
[jira] [Resolved] (NIFI-5681) A test in
TestVersionedFlowSnapshotMetadataResult fails because it depends on locale
[ https://issues.apache.org/jira/browse/NIFI-5681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard resolved NIFI-5681.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.8.0
> A test in TestVersionedFlowSnapshotMetadataResult fails because it depends on locale
> ------------------------------------------------------------------------------------
>
> Key: NIFI-5681
> URL: https://issues.apache.org/jira/browse/NIFI-5681
> Project: Apache NiFi
> Issue Type: Test
> Reporter: Kotaro Terada
> Priority: Major
> Fix For: 1.8.0
>
>
> Test {{testWriteSimpleVersionedFlowSnapshotResult}} in {{TestVersionedFlowSnapshotMetadataResult}} class fails with an assertion error when the locale is not "en_US" (or similar locale). When the locale is "ja_JP", the test fails as follows:
> {noformat}
> [INFO] Running org.apache.nifi.toolkit.cli.impl.result.TestVersionedFlowSnapshotMetadataResult
> [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.028 s <<< FAILURE! - in org.apache.nifi.toolkit.cli.impl.result.TestVersionedFlowSnapshotMetadataResult
> [ERROR] testWriteSimpleVersionedFlowSnapshotResult(org.apache.nifi.toolkit.cli.impl.result.TestVersionedFlowSnapshotMetadataResult) Time elapsed: 0.027 s <<< FAILURE!
> java.lang.AssertionError
> at org.apache.nifi.toolkit.cli.impl.result.TestVersionedFlowSnapshotMetadataResult.testWriteSimpleVersionedFlowSnapshotResult(TestVersionedFlowSnapshotMetadataResult.java:79)
> {noformat}
> The content of {{resultOut}} is now:
> {noformat}
> Ver Date Author Message
> --- ---------------------- ------ ----------------------------------------
> 1 水, 2 14 2018 12:00 JST user1 This is a long comment, longer than t...
> 2 水, 2 14 2018 12:30 JST user2 This is v2
> {noformat}
> Even if checking the heading two lines (as we do now), length of a line is different by each locale because width of columns depends on locale. We can deal with this problem using regex.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)