Project: JDT
Bug 129725 JDT JUnit: java.lang.Exception: Unexpected TestElement type for testId '230':
Reported: 2006-02-28 02:55:04 | Status: verified fixed

I20060221-1300 I got several exceptions in .log but nothing visibly in the UI. I started the JDT Text tests several times in Debug and Run mode (in sequence, not parallel). I also terminated one of those via Debug view. !ENTRY org.eclipse.jdt.junit 4 4 2006-02-27 17:54:28.022 !MESSAGE Error !STACK 0 java.lang.Exception: Unexpected TestElement type for testId '230': org.eclipse.jdt.text.tests.JUnitProjectTestSetup: NOT_RUN (1) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.logUnexpectedTest(TestRunSession.java:476) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.testFailed(TestRunSession.java:414) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$7.run(RemoteTestRunnerClient.java:525) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:816) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.notifyTestFailed(RemoteTestRunnerClient.java:522) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$16(RemoteTestRunnerClient.java:517) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$TraceProcessingState.readMessage(RemoteTestRunnerClient.java:170) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.receiveMessage(RemoteTestRunnerClient.java:342) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$26(RemoteTestRunnerClient.java:341) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$ServerConnection.run(RemoteTestRunnerClient.java:267) !ENTRY org.eclipse.jdt.junit 4 4 2006-02-27 17:54:28.053 !MESSAGE Error !STACK 0 java.lang.Exception: Unexpected TestElement type for testId '243': org.eclipse.jdt.text.tests.JUnitProjectTestSetup: NOT_RUN (1) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.logUnexpectedTest(TestRunSession.java:476) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.testFailed(TestRunSession.java:414) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$7.run(RemoteTestRunnerClient.java:525) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:816) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.notifyTestFailed(RemoteTestRunnerClient.java:522) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$16(RemoteTestRunnerClient.java:517) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$TraceProcessingState.readMessage(RemoteTestRunnerClient.java:170) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.receiveMessage(RemoteTestRunnerClient.java:342) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$26(RemoteTestRunnerClient.java:341) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$ServerConnection.run(RemoteTestRunnerClient.java:267) !ENTRY org.eclipse.jdt.junit 4 4 2006-02-27 17:54:30.251 !MESSAGE Error !STACK 0 java.lang.Exception: Unexpected TestElement type for testId '301': org.eclipse.jdt.text.tests.AbstractSemanticHighlightingTest$SemanticHighlightingTestSetup: NOT_RUN (1) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.logUnexpectedTest(TestRunSession.java:476) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.testFailed(TestRunSession.java:414) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$7.run(RemoteTestRunnerClient.java:525) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:816) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.notifyTestFailed(RemoteTestRunnerClient.java:522) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$16(RemoteTestRunnerClient.java:517) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$TraceProcessingState.readMessage(RemoteTestRunnerClient.java:170) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.receiveMessage(RemoteTestRunnerClient.java:342) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$26(RemoteTestRunnerClient.java:341) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$ServerConnection.run(RemoteTestRunnerClient.java:267) !ENTRY org.eclipse.jdt.junit 4 4 2006-02-27 17:54:30.261 !MESSAGE Error !STACK 0 java.lang.Exception: Unexpected TestElement type for testId '321': org.eclipse.jdt.text.tests.AbstractSemanticHighlightingTest$SemanticHighlightingTestSetup: NOT_RUN (1) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.logUnexpectedTest(TestRunSession.java:476) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.testFailed(TestRunSession.java:414) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$7.run(RemoteTestRunnerClient.java:525) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:816) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.notifyTestFailed(RemoteTestRunnerClient.java:522) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$16(RemoteTestRunnerClient.java:517) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$TraceProcessingState.readMessage(RemoteTestRunnerClient.java:170) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.receiveMessage(RemoteTestRunnerClient.java:342) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$26(RemoteTestRunnerClient.java:341) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$ServerConnection.run(RemoteTestRunnerClient.java:267) !ENTRY org.eclipse.jdt.junit 4 4 2006-02-27 17:54:31.607 !MESSAGE Error !STACK 0 java.lang.Exception: Unexpected TestElement type for testId '363': org.eclipse.jdt.ui.tests.core.ProjectTestSetup: NOT_RUN (1) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.logUnexpectedTest(TestRunSession.java:476) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.testFailed(TestRunSession.java:414) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$7.run(RemoteTestRunnerClient.java:525) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:816) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.notifyTestFailed(RemoteTestRunnerClient.java:522) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$16(RemoteTestRunnerClient.java:517) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$TraceProcessingState.readMessage(RemoteTestRunnerClient.java:170) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.receiveMessage(RemoteTestRunnerClient.java:342) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$26(RemoteTestRunnerClient.java:341) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$ServerConnection.run(RemoteTestRunnerClient.java:267) !ENTRY org.eclipse.jdt.junit 4 4 2006-02-27 17:54:33.343 !MESSAGE Error !STACK 0 java.lang.Exception: Unexpected TestElement type for testId '512': org.eclipse.jdt.text.tests.IndentActionTest$IndentTestSetup: NOT_RUN (1) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.logUnexpectedTest(TestRunSession.java:476) at org.eclipse.jdt.internal.junit.model.TestRunSession$TestSessionNotifier.testFailed(TestRunSession.java:414) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$7.run(RemoteTestRunnerClient.java:525) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:816) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.notifyTestFailed(RemoteTestRunnerClient.java:522) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$16(RemoteTestRunnerClient.java:517) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$TraceProcessingState.readMessage(RemoteTestRunnerClient.java:170) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.receiveMessage(RemoteTestRunnerClient.java:342) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient.access$26(RemoteTestRunnerClient.java:341) at org.eclipse.jdt.internal.junit.model.RemoteTestRunnerClient$ServerConnection.run(RemoteTestRunnerClient.java:267)

Files changed in fix:
org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/model/ITestSessionListener.java org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/model/JUnitModel.java org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/model/TestCaseElement.java org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/model/TestElement.java org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/model/TestRunSession.java org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/model/TestSuiteElement.java org.eclipse.jdt.junit.runtime/src/org/eclipse/jdt/internal/junit/runner/junit3/JUnit3TestReference.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/model/ITestSessionListener.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/model/JUnitModel.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/model/TestCaseElement.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/model/TestElement.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/model/TestRunSession.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/model/TestSuiteElement.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/CompareResultDialog.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/CopyFailureListAction.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/FailureTrace.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestRunnerViewPart.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestSessionLabelProvider.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestSessionTableContentProvider.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestViewer.java