Skip to content

Commit

Permalink
Show error on SmokeViewsTest failure
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Sep 24, 2024
1 parent dedfb12 commit e669610
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit e669610

Please sign in to comment.