Mercurial > hg > release > icedtea-web-1.7
changeset 1437:85c45a76dddd
FormatterTest.java: regular expression of testXNewLinesPlain adapted to match both win and linux line endings
author | Jiri Vanek <jvanek@redhat.com> |
---|---|
date | Thu, 18 May 2017 16:12:54 +0200 |
parents | 47b05aef20b3 |
children | 3e52d36eecdf |
files | ChangeLog tests/netx/unit/net/sourceforge/jnlp/util/docprovider/formatters/formatters/FormatterTest.java |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu May 18 09:42:16 2017 +0200 +++ b/ChangeLog Thu May 18 16:12:54 2017 +0200 @@ -1,3 +1,9 @@ +2017-05-18 Jiri Vanek <jvanek@redhat.com> + Tomáš Votava <tomcacolca@gmail.com> + + * tests/netx/unit/net/sourceforge/jnlp/util/docprovider/formatters/formatters/FormatterTest.java: + regular expression of testXNewLinesPlain adapted to match both win and linux line endings + 2017-05-15 Jiri Vanek <jvanek@redhat.com> Installer graphic made a bit more ITWized
--- a/tests/netx/unit/net/sourceforge/jnlp/util/docprovider/formatters/formatters/FormatterTest.java Thu May 18 09:42:16 2017 +0200 +++ b/tests/netx/unit/net/sourceforge/jnlp/util/docprovider/formatters/formatters/FormatterTest.java Thu May 18 16:12:54 2017 +0200 @@ -60,7 +60,7 @@ PlainTextFormatter f = new PlainTextFormatter(); final int x = 10; String s = f.getNewLine(x); - String[] a = s.replace(f.getNewLine(), "X" + f.getNewLine()).split("[" + f.getNewLine() + "]{1}"); + String[] a = s.replace(f.getNewLine(), "X" + f.getNewLine()).split("" + f.getNewLine() + ""); Assert.assertEquals(x, a.length); }