mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit patterns: accept whitespaces in hamcrest matchers (IDEA-205843)
This commit is contained in:
@@ -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 \"(.*)\"",
|
||||
|
||||
Reference in New Issue
Block a user