Bug 280846 [UI][CSS] Null styling engine required in main context for tests to run
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/RunApplicationTest.java
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.service.packageadmin.PackageAdmin;
import org.osgi.util.tracker.ServiceTracker;
/**
 * This should be run as a headless Junit Plug-in Test. It creates the
 * application in a separate thread, and then tries to post the test to the
 * application using syncExec(*). It doesn't have the correct "wait for the
 * workbench to come up" code.
 */
public class RunApplicationTest extends TestCase {
	private ServiceTracker instanceLocation;
	private BundleContext bundleContext;
	private ServiceTracker instanceAppContext;
	private ServiceTracker bundleTracker;
	private Workbench workbench;
	private IEclipseContext applicationContext;
	private Display display;
	public RunApplicationTest(String name) {
		super(name);
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see junit.framework.TestCase#setUp()
	 */
	@Override
	protected void setUp() throws Exception {
		bundleContext = Activator.getDefault().getBundle().getBundleContext();
	}
	/*