From b387a7139dad3fb4f9510012bdf796412244acba Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Wed, 3 Jul 2013 16:03:53 +0400 Subject: [PATCH] simplify --- .../test/org/jetbrains/plugins/github/test/GithubTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/github/github-test/test/org/jetbrains/plugins/github/test/GithubTest.java b/plugins/github/github-test/test/org/jetbrains/plugins/github/test/GithubTest.java index 03664d965cdb..f290b88f0ca3 100644 --- a/plugins/github/github-test/test/org/jetbrains/plugins/github/test/GithubTest.java +++ b/plugins/github/github-test/test/org/jetbrains/plugins/github/test/GithubTest.java @@ -153,7 +153,7 @@ public abstract class GithubTest extends UsefulTestCase { } protected void checkNotification(@NotNull NotificationType type, @Nullable String title, @Nullable String content) { - Notification actualNotification = ((TestNotificator)ServiceManager.getService(myProject, Notificator.class)).getLastNotification(); + Notification actualNotification = myNotificator.getLastNotification(); assertNotNull("No notification was shown", actualNotification); if (title != null) {