SSR: fix test failure on Windows machines

This commit is contained in:
Bas Leijdekkers
2018-05-19 11:12:10 +02:00
parent 26ddddac2b
commit 532f2ce934
@@ -142,9 +142,9 @@ public class StringToConstraintsTransformerTest {
@Test
public void testInvalidRegularExpression() {
expectException("'a:x!(", "Invalid regular expression: Unclosed group near index 3\n" +
"x!(\n" +
" ^");
expectException("'a:x!(", String.format("Invalid regular expression: Unclosed group near index 3%n" +
"x!(%n" +
" ^"));
}
@Test
@@ -277,8 +277,8 @@ public class StringToConstraintsTransformerTest {
@Test
public void testInvalidRegex() {
expectException("'T:{ ;", "Invalid regular expression: Illegal repetition\n" +
"{");
expectException("'T:{ ;", String.format("Invalid regular expression: Illegal repetition%n" +
"{"));
}
@Test