Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2010-03-03 15:17:49 +0000
committerAndrew Niefer2010-03-03 15:17:49 +0000
commit63287831584dec978417f95e71c819d9027e7a1e (patch)
tree62c7861de697f3ab3567aa8e501ef37676593429 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher
parentbd353f23bc6c69ee9228fdbce602d406aeaf0e9b (diff)
downloadrt.equinox.p2-63287831584dec978417f95e71c819d9027e7a1e.tar.gz
rt.equinox.p2-63287831584dec978417f95e71c819d9027e7a1e.tar.xz
rt.equinox.p2-63287831584dec978417f95e71c819d9027e7a1e.zip
bug 304514 - don't implement IApplicationContext
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/CategoryPublisherTest.java46
1 files changed, 2 insertions, 44 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/CategoryPublisherTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/CategoryPublisherTest.java
index afcb82a4c..fc232a3e9 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/CategoryPublisherTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/CategoryPublisherTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
-* Copyright (c) 2009 EclipseSource and others. All rights reserved. This
+* Copyright (c) 2009, 2010 EclipseSource 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 http://www.eclipse.org/legal/epl-v10.html
@@ -11,14 +11,10 @@ package org.eclipse.equinox.p2.tests.publisher.actions;
import java.io.File;
import java.net.URI;
-import java.util.HashMap;
-import java.util.Map;
-import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.equinox.internal.p2.updatesite.CategoryPublisherApplication;
import org.eclipse.equinox.p2.publisher.AbstractPublisherApplication;
import org.eclipse.equinox.p2.tests.AbstractProvisioningTest;
import org.eclipse.equinox.p2.tests.TestData;
-import org.osgi.framework.Bundle;
/**
*
@@ -29,45 +25,7 @@ public class CategoryPublisherTest extends AbstractProvisioningTest {
* runs default director app.
*/
protected void runPublisherApp(AbstractPublisherApplication application, final String[] args) throws Exception {
-
- application.start(new IApplicationContext() {
-
- public void applicationRunning() {
- //empty
- }
-
- public Map getArguments() {
- Map arguments = new HashMap();
-
- arguments.put(IApplicationContext.APPLICATION_ARGS, args);
-
- return arguments;
- }
-
- public String getBrandingApplication() {
- return null;
- }
-
- public Bundle getBrandingBundle() {
- return null;
- }
-
- public String getBrandingDescription() {
- return null;
- }
-
- public String getBrandingId() {
- return null;
- }
-
- public String getBrandingName() {
- return null;
- }
-
- public String getBrandingProperty(String key) {
- return null;
- }
- });
+ application.run(args);
}
public void testCompressCategoryRepo() throws Exception {

Back to the top