From e669610ab4ddb4362d205c6850b5d3304f503f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Wed, 18 Sep 2024 08:32:10 +0300 Subject: [PATCH] Show error on SmokeViewsTest failure --- .../ui/org/eclipse/jdt/ui/tests/views/SmokeViewsTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/views/SmokeViewsTest.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/views/SmokeViewsTest.java index 102b42169da..686e72bc5c3 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/views/SmokeViewsTest.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/views/SmokeViewsTest.java @@ -138,7 +138,8 @@ private void smokeTest(String viewId) throws PartInitException { view = window.getActivePage().showView(viewId); assertNotNull("View " + viewId + " should be created", view); DisplayHelper.driveEventQueue(Display.getDefault()); - if(view instanceof org.eclipse.ui.internal.ErrorViewPart) { + if(view instanceof org.eclipse.ui.internal.ErrorViewPart errorView) { + System.out.println(errorView.getContentDescription()); fail("Error happened on opening view " + viewId); } }