Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365494

Summary: [JUnit] JUnit ComparisonFailure no longer shows full comparison when double-clicked
Product: [Eclipse Project] JDT Reporter: Richard Bondi <rbondi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, deepakazad, mike
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Richard Bondi CLA 2011-12-02 17:13:18 EST
Build Identifier: I20110613-1736

In earlier versions of Eclipse, if a JUnit 3 test failed with ComparisonFailure, you could double-click the failure in the Failure Trace pane of the JUnit view, and dialog would pop up showing you the expected and actual string in full, with differences in different colors.

No longer. As of 3.7.? we're back to just seeing something like:

expected:<...> but was:<...foo>

which is pretty useless.

This was supposed to be fixed long ago with https://bugs.eclipse.org/bugs/show_bug.cgi?id=45693, but it's back.

Reproducible: Always

Steps to Reproduce:
1. Write a JUnit 3 test containing assertEquals for two different strings.
2. Run the test.
3. Double click the failure in the JUnit view.
Nothing happens.
Comment 1 Deepak Azad CLA 2011-12-03 01:59:36 EST
(In reply to comment #0)
> No longer. As of 3.7.? we're back to just seeing something like:
> 
> expected:<...> but was:<...foo>
This is surprising, I have been using the feature all week on the latest 3.8 builds and that too on Linux.

- On Double click, the dialog showing the comparison did not open? Did you double click with the mouse pointer somewhere in "expected:<...> but was:<...foo>" ?
- Is there something in the error log?
Comment 2 Richard Bondi CLA 2011-12-05 18:27:02 EST
- Nothing in error log.
- I did click in the "expected:<...>" area.
- Actually, it's not working in 3.6 either. I think it may be related to the Android plugins.

So could you close this bug for now please? I'll collect more info before, or if, refiling.

Thanks,
/rb
Comment 3 Deepak Azad CLA 2011-12-05 22:08:21 EST
(In reply to comment #2)
> So could you close this bug for now please? I'll collect more info before, or
> if, refiling.
Thanks for the update. Please reopen this bug when you have more info.