Bug 35590 JUnit window doesn't report errors from junit.extensions.TestSetup [JUnit]
The class junit.extensions.TestSetup is a decorator to set up additional fixture state once before tests are run. I have a TestSuite wrapped into a TestSetup for that purpose. The JUnit window in the Java perspective shows neither errors (exceptions) nor failures (assertions) that happen in my TestSetup.setUp() method. The only thing I get is a comment on the status line: JUnit test run finished: 1.913 seconds (Errors: 0, Failures: 1) Just FYI, my class ActivationsTest creates a TestSuite like this: public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest( new ActivationsTest( "testAddAccount" ) ); suite.addTest( new ActivationsTest( "testAddAccountReserveMobile" ) ); suite.addTest( new ActivationsTest( "testReserveAvailableMobile" ) ); return new CAMTestSetup( suite, "ActivationsTest" ); }//suite()
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestHierarchyTab.java
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.junit.ITestRunListener;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
/*
 * A view that shows the contents of a test suite
 * as a tree.
 */
public class TestHierarchyTab extends TestRunTab implements IMenuListener {