junit patterns: accept whitespaces in hamcrest matchers (IDEA-205843)

This commit is contained in:
Anna.Kozlova
2019-01-30 19:16:57 +01:00
parent 46fcebb8c8
commit 7f7e20e2ee
2 changed files with 2 additions and 2 deletions
@@ -41,7 +41,7 @@ public class JUnitExpectedPatternsTest {
public void testHamcrestAssertThatWithReason() {
Assert.assertNotNull(createNotification("reason\n" +
"Expected: is \"aaa\\naa\"\n" +
" but: was \"bbb\\nbb\""));
" but: was \"bbb\\nbb\""));
}
@Test
@@ -26,7 +26,7 @@ public class ExpectedPatterns extends AbstractExpectedPatterns {
private static final String[] PATTERN_STRINGS = new String[]{
"\nexpected: is \"(.*)\"\n\\s*got: \"(.*)\"\n",
"\nexpected: is \"(.*)\"\n\\s*but: was \"(.*)\"",
"\nexpected: is \"(.*)\"\n\\s*but:\\s*was \"(.*)\"",
"\nexpected: (.*)\n\\s*got: (.*)",
"expected same:<(.*)> was not:<(.*)>",
"\nexpected: \"(.*)\"\n\\s*but: was \"(.*)\"",