From c1f1bfd87b13244b08fe396d07be8b5c1e6b7719 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Wed, 3 Jul 2013 14:27:40 +0400 Subject: [PATCH] [github] Display notification content on test failure --- .../test/org/jetbrains/plugins/github/test/GithubTest.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 d2c19d37dfbf..f1bb7311bd5c 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 @@ -156,16 +156,13 @@ public abstract class GithubTest extends UsefulTestCase { Notification actualNotification = ((TestNotificator)ServiceManager.getService(myProject, Notificator.class)).getLastNotification(); assertNotNull("No notification was shown", actualNotification); - System.out.println("Notification title: " + actualNotification.getTitle()); - System.out.println("Notification content: " + actualNotification.getContent()); - - assertEquals("Notification has wrong type", type, actualNotification.getType()); if (title != null) { - assertEquals("Notification has wrong title", title, actualNotification.getTitle()); + assertEquals("Notification has wrong title (content: " + actualNotification.getContent() + ")", title, actualNotification.getTitle()); } if (content != null) { assertEquals("Notification has wrong content", content, actualNotification.getContent()); } + assertEquals("Notification has wrong type", type, actualNotification.getType()); } protected void registerHttpAuthService() {