NIFI-5681: Fix a locale-dependent test in TestVersionedFlowSnapshotMetadataResult

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #3061.
This commit is contained in:
Kotaro Terada 2018-10-09 18:31:41 +09:00 committed by Pierre Villard
parent 6c17685cbe
commit 83ca676492
1 changed files with 5 additions and 5 deletions

View File

@ -69,13 +69,13 @@ public class TestVersionedFlowSnapshotMetadataResult {
//System.out.println(resultOut);
// can't get the time zone to line up on travis, so ignore this for now
final String expected = "\n" +
"Ver Date Author Message \n" +
"--- -------------------------- ------ ---------------------------------------- \n" ;//+
final String expectedPattern = "^\\n" +
"Ver +Date + Author + Message +\\n" +
"-+ +-+ +-+ +-+ +\\n" +
//"1 Wed, Feb 14 2018 12:00 EST user1 This is a long comment, longer than t... \n" +
//"2 Wed, Feb 14 2018 12:30 EST user2 This is v2 \n" +
//"\n";
"(.|\\n)+$";
Assert.assertTrue(resultOut.startsWith(expected));
Assert.assertTrue(resultOut.matches(expectedPattern));
}
}