Kotaro Terada created NIFI-5681:
-----------------------------------
Summary: 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
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)