| Summary: | [JUnit] I can't see JUnit Test result after junit window refresh (test history browsing). | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Micha³ Kuliñski <coola> | ||||||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | ||||||||||
| Version: | 3.3 | ||||||||||
| Target Milestone: | 3.3.1 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Micha³ Kuliñski
Created attachment 73196 [details]
Icons of Junit test were changing during mouse click.
For Eclipse 3.2 all worked ok but now .....
Created attachment 73197 [details]
When I want to view JUnit history I see blank window.
It is true that earlier these test were ended properly (with stacktrace or green success string). What happens when you start the test again? "What happens when you start the test again?" As you can see at picture atached, named "Icons of Junit test were changing during mouse click" I was running the same test few times. Every time I run again the test firstly all is ok, I can view stack trace, and so on, but when I change view for other test, and I back for my test result view again, I see nothing. I've discovered that this bug happens when i'm running only one test method. When I'm running whole test class - everything is o.k. Reproduced with 3.3.
- create the CU below, select it and run as Junit test
- in the JUnit view, select 'testFoo3', invoke 'Debug' from context menu
- in the JUnit view history switch back to 'W' and back again to 'Rerun'.
See exception below.
package org.eclipse;
import junit.framework.TestCase;
public class W extends TestCase {
public void testFoo3() throws Exception {
}
}
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:84)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:72)
at org.eclipse.jdt.internal.junit.model.TestCaseElement.<init>(TestCaseElement.java:25)
at org.eclipse.jdt.internal.junit.model.TestRunSession.createTestElement(TestRunSession.java:487)
at org.eclipse.jdt.internal.junit.model.TestRunHandler.startElement(TestRunHandler.java:110)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1337)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:331)
at org.eclipse.jdt.internal.junit.model.JUnitModel.importIntoTestRunSession(JUnitModel.java:424)
at org.eclipse.jdt.internal.junit.model.TestRunSession.swapIn(TestRunSession.java:356)
at org.eclipse.jdt.internal.junit.model.TestRunSession.addTestSessionListener(TestRunSession.java:298)
at org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart.setActiveTestRunSession(TestRunnerViewPart.java:1215)
at org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart.access$2(TestRunnerViewPart.java:1164)
at org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$RunnerViewHistory.setActiveEntry(TestRunnerViewPart.java:330)
at org.eclipse.jdt.internal.ui.viewsupport.HistoryDropDownAction$HistoryAction.run(HistoryDropDownAction.java:54)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3681)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3292)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Created attachment 76754 [details]
Patch for 3.3.1
Fixed in HEAD and R3_3_maintenance. Ok, works fine. Good work :) |