[github] Display notification content on test failure

This commit is contained in:
Kirill Likhodedov
2013-07-03 14:55:24 +04:00
parent ade05fa349
commit c1f1bfd87b
@@ -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() {