blob: 6513426c6103215ef3049983070de2666fb1ee8e [file] [log] [blame]
package org.eclipse.osgi.tests.util;
import org.eclipse.core.tests.session.SessionTestSuite;
import org.eclipse.core.tests.session.Setup;
import org.eclipse.core.tests.session.SetupManager.SetupException;
public class TextProcessorSessionTest extends SessionTestSuite {
private String lang = null;
/**
* Create a session test for the given class.
* @param pluginId tests plugin id
* @param clazz the test class to run
* @param language the language to run the tests under (the -nl parameter value)
*/
public TextProcessorSessionTest(String pluginId, Class clazz, String language) {
super(pluginId, clazz);
lang = language;
}
/* (non-Javadoc)
* @see org.eclipse.core.tests.session.SessionTestSuite#newSetup()
*/
protected Setup newSetup() throws SetupException {
Setup base = super.newSetup();
// the base implementation will have set this to the host configuration
base.setEclipseArgument("nl", lang); // Setup.NL is private
return base;
}
}