Community
Participate
Working Groups
The settings for the org.eclipse.jdt.junit.CompareResultDialog are missing from the org.eclipse.jdt.junit/dialog_settings.xml in the user's workspace resulting in the dialog window being disabled in the Eclipse user interface. The missing <section> from the workspace of a previous Eclipse version reads: <section name="org.eclipse.jdt.internal.junit.ui.CompareResultDialog"> <item key="DIALOG_X_ORIGIN" value="334"/> <item key="DIALOG_HEIGHT" value="253"/> <item key="DIALOG_FONT_NAME" value="1|Tahoma|8|0|WINDOWS|1|-11|0|0|0|400|0|0|0|1|0|0|0|0|Tahoma"/> <item key="DIALOG_Y_ORIGIN" value="334"/> <item key="DIALOG_WIDTH" value="620"/> </section> This entry is missing from a new workspace created under Eclipse v3.2.
Moving to JDT/UI
A new workspace wouldn't have this setting, and the dialog should show up anyways. This information just stores the last recently used size. What effect did you see? Note that this dialog show up when you double click on an string assertion failure in the JUnit view.
Clean install of v3.2 running for students taking a lab on using JUnit with Eclipse. Run unit tests with comparison failures. Double-click on error does not bring up comparison results dialog and the button at the edge of the JUnit results is also disabled. There appears to be no preferences that alters this behaviour, and the only difference I can see in the created workspace is this missing setting. Deryck
And this is a string comparison failure? (the dialog only shows up on these...) junit.framework.ComparisonFailure: expected:<Hell[o]> but was:<Hel[lO]> at junit.framework.Assert.assertEquals(Assert.java:81) at junit.framework.Assert.assertEquals(Assert.java:87) at p.MyTest.testFoo(MyTest.java:6) public class MyTest extends TestCase { public void testFoo() { assertEquals("Hello", "HellO"); } }
Specifically, this was a JUnit 4 test case to test the toString method in a simple class representing a Playing Card. The test should have been equivalent to the call: assertEquals("AC", "2D"); In my installation of Eclipse, everything worked as expected including the ability to display the result comparison dialog. For the students (and at least one other member of staff), who have clean installs of v3.2 and have never used another copy of Eclipse before, they get the ComparisonFailure but cannot view the result comparison dialog.
I have no idea what this could be. I can't reproduce and I would need this to debug the problem.
setting to remind until I can reproduce or have an idea what the problem could be
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.