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

Bug 374239

Summary: [JUnit] String compare dialog isn't refreshed when unit tests fail with exception
Product: [Eclipse Project] JDT Reporter: Aaron Digulla <digulla>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P4 CC: markus.kell.r
Version: 3.7.2Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Aaron Digulla CLA 2012-03-14 10:17:35 EDT
1. Run a couple of unit tests which compare Strings with assertEquals(). Make sure one of the test fails with an error.
2. Run the tests and open the string compare view
3. Fix the comparison error and throw an exception instead.
4. Run the tests again

The compare view will still show the content from the run in step #2. If you don't read the error message in the "Failure Trace", it's easy to get confused why the error doesn't vanish.

Suggested fix: Clear the compare view after running the unit tests when the first error in the JUnit view doesn't use assertEquals(String, String).
Comment 1 Markus Keller CLA 2012-03-14 10:45:11 EDT
Agree it should be cleared on on rerun.
Comment 2 Eclipse Genie CLA 2020-05-20 11:25:02 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.