From b002f1b8c8f953e8096a4da258a29d78d0a1f3bb Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Fri, 4 Sep 2015 19:40:15 +0300 Subject: [PATCH] fix for All Tests --- .../codeInsight/navigation/RunLineMarkerTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/navigation/RunLineMarkerTest.java b/java/java-tests/testSrc/com/intellij/codeInsight/navigation/RunLineMarkerTest.java index 54fe603dbc5d..11c8c6486cc7 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/navigation/RunLineMarkerTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/navigation/RunLineMarkerTest.java @@ -57,10 +57,12 @@ public class RunLineMarkerTest extends LightCodeInsightFixtureTestCase { assertNotNull(group); TestActionEvent event = new TestActionEvent(); List list = ContainerUtil.findAll(group.getChildren(event), action -> { - action.update(event); - return event.getPresentation().getText().startsWith("Run"); + TestActionEvent actionEvent = new TestActionEvent(); + action.update(actionEvent); + String text = actionEvent.getPresentation().getText(); + return text != null && text.startsWith("Run ") && text.endsWith("'"); }); - assertEquals(2, list.size()); + assertEquals(list.toString(), 2, list.size()); list.get(0).update(event); assertEquals("Run 'MainTest.main()'", event.getPresentation().getText()); list.get(1).update(event);