diff options
author | Thomas Watson | 2013-07-01 19:08:04 +0000 |
---|---|---|
committer | Thomas Watson | 2013-07-01 19:08:04 +0000 |
commit | 1070b693b75460f311be85953d0c7e9e0b35011a (patch) | |
tree | 045a96c82a0b2d05ce51dada2623bae88531f8e1 /bundles | |
parent | c94dfab5740d14cbd426fa47c7b49648c30585e0 (diff) | |
download | rt.equinox.framework-1070b693b75460f311be85953d0c7e9e0b35011a.tar.gz rt.equinox.framework-1070b693b75460f311be85953d0c7e9e0b35011a.tar.xz rt.equinox.framework-1070b693b75460f311be85953d0c7e9e0b35011a.zip |
Change TextProcessorSessionTest to use its own configuration
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/util/TextProcessorSessionTest.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/util/TextProcessorSessionTest.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/util/TextProcessorSessionTest.java index 373529ffe..753e6f7c1 100644 --- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/util/TextProcessorSessionTest.java +++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/util/TextProcessorSessionTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011 IBM Corporation and others. + * Copyright (c) 2011, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -10,13 +10,13 @@ *******************************************************************************/ 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.*; import org.eclipse.core.tests.session.SetupManager.SetupException; +import org.eclipse.osgi.tests.OSGiTest; -public class TextProcessorSessionTest extends SessionTestSuite { +public class TextProcessorSessionTest extends ConfigurationSessionTestSuite { private String lang = null; - + /** * Create a session test for the given class. * @param pluginId tests plugin id @@ -26,6 +26,10 @@ public class TextProcessorSessionTest extends SessionTestSuite { public TextProcessorSessionTest(String pluginId, Class clazz, String language) { super(pluginId, clazz); lang = language; + String[] ids = ConfigurationSessionTestSuite.MINIMAL_BUNDLE_SET; + for (int i = 0; i < ids.length; i++) + addBundle(ids[i]); + addBundle(OSGiTest.PI_OSGI_TESTS); } /* (non-Javadoc) @@ -34,7 +38,7 @@ public class TextProcessorSessionTest extends SessionTestSuite { 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 + base.setEclipseArgument("nl", lang); // Setup.NL is private return base; } |