Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLazar Kirchev2012-09-10 03:39:18 -0400
committerLazar Kirchev2012-09-10 03:39:18 -0400
commitadf989625b43d0a4d9f51eac06fe44d625b7ff44 (patch)
tree8c189ad72e76cf2539e76dc3b4315ffdfbfeff12 /org.eclipse.virgo.shell.command
parent93f567ae693a9870748bdf84c655fab912038002 (diff)
parentfcdc15e271f29f7cad8e316d41611256718fe42d (diff)
downloadorg.eclipse.virgo.kernel-adf989625b43d0a4d9f51eac06fe44d625b7ff44.tar.gz
org.eclipse.virgo.kernel-adf989625b43d0a4d9f51eac06fe44d625b7ff44.tar.xz
org.eclipse.virgo.kernel-adf989625b43d0a4d9f51eac06fe44d625b7ff44.zip
Merge with remote master
Diffstat (limited to 'org.eclipse.virgo.shell.command')
-rw-r--r--org.eclipse.virgo.shell.command/.classpath19
-rw-r--r--org.eclipse.virgo.shell.command/ivy.xml1
-rw-r--r--org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/ConfigCommandsTests.java9
-rw-r--r--org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/StubAbstractCompositeInstallArtifactBasedCommands.java3
-rw-r--r--org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/completers/ConfigCompleterTests.java7
-rw-r--r--org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/stubs/StubRegion.java161
-rw-r--r--org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/stubs/StubRegionDigraph.java146
7 files changed, 17 insertions, 329 deletions
diff --git a/org.eclipse.virgo.shell.command/.classpath b/org.eclipse.virgo.shell.command/.classpath
index a8f7e307..2952a7ad 100644
--- a/org.eclipse.virgo.shell.command/.classpath
+++ b/org.eclipse.virgo.shell.command/.classpath
@@ -25,35 +25,34 @@
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.junit/com.springsource.org.junit/4.7.0/com.springsource.org.junit-4.7.0.jar" sourcepath="/KERNEL_IVY_CACHE/org.junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-sources-4.4.0.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.easymock/com.springsource.org.easymock/2.3.0/com.springsource.org.easymock-2.3.0.jar" sourcepath="/KERNEL_IVY_CACHE/org.easymock/com.springsource.org.easymock/2.3.0/com.springsource.org.easymock-sources-2.3.0.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.aspectj/com.springsource.org.aspectj.runtime/1.6.12.RELEASE/com.springsource.org.aspectj.runtime-1.6.12.RELEASE.jar" sourcepath="/KERNEL_IVY_CACHE/org.aspectj/com.springsource.org.aspectj.runtime/1.6.12.RELEASE/com.springsource.org.aspectj.runtime-1.6.12.RELEASE.jar"/>
- <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.common/3.6.0.D-20120820124944/org.eclipse.virgo.util.common-3.6.0.D-20120820124944.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.common/3.5.0.D-20120615065828/org.eclipse.virgo.util.common-sources-3.5.0.D-20120615065828.jar"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.common/3.6.0.D-20120903162413/org.eclipse.virgo.util.common-3.6.0.D-20120903162413.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.common/3.5.0.D-20120615065828/org.eclipse.virgo.util.common-sources-3.5.0.D-20120615065828.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.mirrored/org.eclipse.osgi/3.8.0.v20120508-2119/org.eclipse.osgi-3.8.0.v20120508-2119.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.osgi/org.eclipse.osgi/3.7.1.R37x_v20110808-1106/org.eclipse.osgi-sources-3.7.1.R37x_v20110808-1106.jar"/>
<classpathentry kind="con" path="org.eclipse.ajdt.core.ASPECTJRT_CONTAINER"/>
- <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic/3.6.0.D-20120820125756/org.eclipse.virgo.medic-3.6.0.D-20120820125756.jar">
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic/3.6.0.D-20120903162943/org.eclipse.virgo.medic-3.6.0.D-20120903162943.jar">
<attributes>
<attribute name="org.eclipse.ajdt.aspectpath" value="org.eclipse.ajdt.aspectpath"/>
</attributes>
</classpathentry>
- <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic.test/3.6.0.D-20120820125756/org.eclipse.virgo.medic.test-3.6.0.D-20120820125756.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic.core/1.0.0.CI-B20/org.eclipse.virgo.medic.core-sources-1.0.0.CI-B20.jar"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic.test/3.6.0.D-20120903162943/org.eclipse.virgo.medic.test-3.6.0.D-20120903162943.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic.core/1.0.0.CI-B20/org.eclipse.virgo.medic.core-sources-1.0.0.CI-B20.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.slf4j/com.springsource.slf4j.api/1.6.1/com.springsource.slf4j.api-1.6.1.jar" sourcepath="/KERNEL_IVY_CACHE/org.slf4j/com.springsource.slf4j.api/1.6.1/com.springsource.slf4j.api-sources-1.6.1.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/org.eclipse.virgo.kernel.osgi"/>
- <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.test/org.eclipse.virgo.test.stubs/3.6.0.D-20120820125548/org.eclipse.virgo.test.stubs-3.6.0.D-20120820125548.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.test/org.eclipse.virgo.test.stubs/3.6.0.D-20120820125548/org.eclipse.virgo.test.stubs-sources-3.6.0.D-20120820125548.jar"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.test/org.eclipse.virgo.test.stubs/3.6.0.D-20120903162719/org.eclipse.virgo.test.stubs-3.6.0.D-20120903162719.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.test/org.eclipse.virgo.test.stubs/3.6.0.D-20120903162719/org.eclipse.virgo.test.stubs-sources-3.6.0.D-20120903162719.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.springframework/org.springframework.context/3.0.5.RELEASE/org.springframework.context-3.0.5.RELEASE.jar" sourcepath="/KERNEL_IVY_CACHE/org.springframework/org.springframework.context/3.0.5.RELEASE/org.springframework.context-sources-3.0.5.RELEASE.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.springframework/org.springframework.beans/3.0.5.RELEASE/org.springframework.beans-3.0.5.RELEASE.jar" sourcepath="/KERNEL_IVY_CACHE/org.springframework/org.springframework.beans/3.0.5.RELEASE/org.springframework.beans-sources-3.0.5.RELEASE.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.springframework/org.springframework.core/3.0.5.RELEASE/org.springframework.core-3.0.5.RELEASE.jar" sourcepath="/KERNEL_IVY_CACHE/org.springframework/org.springframework.core/3.0.5.RELEASE/org.springframework.core-sources-3.0.5.RELEASE.jar"/>
- <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.io/3.6.0.D-20120820124944/org.eclipse.virgo.util.io-3.6.0.D-20120820124944.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.io/3.5.0.D-20120615065828/org.eclipse.virgo.util.io-sources-3.5.0.D-20120615065828.jar"/>
- <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic.core/3.6.0.D-20120820125756/org.eclipse.virgo.medic.core-3.6.0.D-20120820125756.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic.test/3.5.0.D-20120615070622/org.eclipse.virgo.medic.test-sources-3.5.0.D-20120615070622.jar"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.io/3.6.0.D-20120903162413/org.eclipse.virgo.util.io-3.6.0.D-20120903162413.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.io/3.5.0.D-20120615065828/org.eclipse.virgo.util.io-sources-3.5.0.D-20120615065828.jar"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic.core/3.6.0.D-20120903162943/org.eclipse.virgo.medic.core-3.6.0.D-20120903162943.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.medic/org.eclipse.virgo.medic.test/3.5.0.D-20120615070622/org.eclipse.virgo.medic.test-sources-3.5.0.D-20120615070622.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/org.eclipse.virgo.kernel.deployer"/>
- <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.repository/org.eclipse.virgo.repository/3.6.0.D-20120820130522/org.eclipse.virgo.repository-3.6.0.D-20120820130522.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.repository/org.eclipse.virgo.repository/3.5.0.D-20120615071313/org.eclipse.virgo.repository-sources-3.5.0.D-20120615071313.jar"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.repository/org.eclipse.virgo.repository/3.6.0.D-20120903163626/org.eclipse.virgo.repository-3.6.0.D-20120903163626.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.repository/org.eclipse.virgo.repository/3.5.0.D-20120615071313/org.eclipse.virgo.repository-sources-3.5.0.D-20120615071313.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/org.eclipse.virgo.kernel.model"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.mirrored/org.eclipse.equinox.event/1.2.100.v20111010-1614/org.eclipse.equinox.event-1.2.100.v20111010-1614.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.mirrored/org.eclipse.equinox.region/1.1.0.v20120319-1602/org.eclipse.equinox.region-1.1.0.v20120319-1602.jar"/>
- <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.osgi.manifest/3.6.0.D-20120820124944/org.eclipse.virgo.util.osgi.manifest-3.6.0.D-20120820124944.jar"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.osgi.manifest/3.6.0.D-20120903162413/org.eclipse.virgo.util.osgi.manifest-3.6.0.D-20120903162413.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/org.eclipse.virgo.kernel.artifact"/>
- <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.nano/org.eclipse.virgo.nano.deployer.api/3.6.0.D-20120820130036/org.eclipse.virgo.nano.deployer.api-3.6.0.D-20120820130036.jar"/>
+ <classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.nano/org.eclipse.virgo.nano.deployer.api/3.6.0.D-20120903163206/org.eclipse.virgo.nano.deployer.api-3.6.0.D-20120903163206.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.mirrored/org.slf4j.jcl/1.6.4.v20120130-2120/org.slf4j.jcl-1.6.4.v20120130-2120.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/org.eclipse.virgo.kernel.services"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.osgi/3.6.0.D-20120820124944/org.eclipse.virgo.util.osgi-3.6.0.D-20120820124944.jar" sourcepath="/KERNEL_IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.osgi/3.1.0.M01/org.eclipse.virgo.util.osgi-sources-3.1.0.M01.jar"/>
<classpathentry kind="var" path="KERNEL_IVY_CACHE/org.eclipse.virgo.mirrored/org.apache.felix.gogo.runtime/0.8.0.v201108120515/org.apache.felix.gogo.runtime-0.8.0.v201108120515.jar" sourcepath="/KERNEL_IVY_CACHE/org.apache.felix/org.apache.felix.gogo.runtime/0.8.0.v201107131313/org.apache.felix.gogo.runtime-sources-0.8.0.v201107131313.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
-
diff --git a/org.eclipse.virgo.shell.command/ivy.xml b/org.eclipse.virgo.shell.command/ivy.xml
index ad167b3c..b0f0a912 100644
--- a/org.eclipse.virgo.shell.command/ivy.xml
+++ b/org.eclipse.virgo.shell.command/ivy.xml
@@ -16,6 +16,7 @@
<!-- RUNTIME -->
<dependency org="org.eclipse.virgo.mirrored" name="org.eclipse.osgi" rev="${org.eclipse.osgi}" conf="compile->runtime"/>
<dependency org="org.eclipse.virgo.mirrored" name="org.eclipse.osgi.services" rev="${org.eclipse.osgi.services}" conf="compile->runtime"/>
+ <dependency org="org.eclipse.virgo.mirrored" name='org.eclipse.equinox.region' rev='${org.eclipse.equinox.region}' conf='compile->compile' />
<dependency org="org.eclipse.virgo.repository" name="org.eclipse.virgo.repository" rev="${org.eclipse.virgo.repository}" conf="compile->compile"/>
<dependency org="org.eclipse.virgo.kernel" name="org.eclipse.virgo.kernel.osgi" rev="latest.integration" conf="compile->compile"/>
<dependency org="org.eclipse.virgo.kernel" name="org.eclipse.virgo.kernel.model" rev="latest.integration" conf="compile->compile"/>
diff --git a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/ConfigCommandsTests.java b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/ConfigCommandsTests.java
index d5b48122..cb7ec312 100644
--- a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/ConfigCommandsTests.java
+++ b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/ConfigCommandsTests.java
@@ -24,17 +24,14 @@ import javax.management.MalformedObjectNameException;
import javax.management.NotCompliantMBeanException;
import javax.management.ObjectName;
+import org.eclipse.virgo.kernel.shell.internal.formatting.StubManageableCompositeArtifact;
+import org.eclipse.virgo.test.stubs.region.StubRegionDigraph;
+import org.eclipse.virgo.test.stubs.service.cm.StubConfigurationAdmin;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.osgi.framework.BundleException;
-
-import org.eclipse.virgo.shell.internal.commands.ConfigCommands;
-import org.eclipse.virgo.shell.internal.formatting.StubManageableCompositeArtifact;
-import org.eclipse.virgo.shell.stubs.StubRegionDigraph;
-import org.eclipse.virgo.test.stubs.service.cm.StubConfigurationAdmin;
-
public class ConfigCommandsTests {
private static final StubRegionDigraph REGION_DIGRAPH = new StubRegionDigraph();
diff --git a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/StubAbstractCompositeInstallArtifactBasedCommands.java b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/StubAbstractCompositeInstallArtifactBasedCommands.java
index 28b1cb46..e0b116e6 100644
--- a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/StubAbstractCompositeInstallArtifactBasedCommands.java
+++ b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/commands/StubAbstractCompositeInstallArtifactBasedCommands.java
@@ -12,8 +12,7 @@
package org.eclipse.virgo.shell.internal.commands;
import org.eclipse.virgo.kernel.model.management.ManageableCompositeArtifact;
-import org.eclipse.virgo.shell.internal.commands.AbstractInstallArtifactBasedCommands;
-import org.eclipse.virgo.shell.stubs.StubRegionDigraph;
+import org.eclipse.virgo.test.stubs.region.StubRegionDigraph;
import org.osgi.framework.BundleException;
final class StubAbstractCompositeInstallArtifactBasedCommands extends AbstractInstallArtifactBasedCommands<ManageableCompositeArtifact> {
diff --git a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/completers/ConfigCompleterTests.java b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/completers/ConfigCompleterTests.java
index 1bbe213f..4a2312b4 100644
--- a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/completers/ConfigCompleterTests.java
+++ b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/internal/completers/ConfigCompleterTests.java
@@ -22,10 +22,9 @@ import javax.management.MalformedObjectNameException;
import javax.management.NotCompliantMBeanException;
import javax.management.ObjectName;
-import org.eclipse.virgo.shell.internal.commands.StubRuntimeArtifactModelObjectNameCreator;
-import org.eclipse.virgo.shell.internal.completers.ConfigCompleter;
-import org.eclipse.virgo.shell.internal.formatting.StubManageableCompositeArtifact;
-import org.eclipse.virgo.shell.stubs.StubRegionDigraph;
+import org.eclipse.virgo.kernel.shell.internal.commands.StubRuntimeArtifactModelObjectNameCreator;
+import org.eclipse.virgo.kernel.shell.internal.formatting.StubManageableCompositeArtifact;
+import org.eclipse.virgo.test.stubs.region.StubRegionDigraph;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
diff --git a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/stubs/StubRegion.java b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/stubs/StubRegion.java
deleted file mode 100644
index cec34391..00000000
--- a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/stubs/StubRegion.java
+++ /dev/null
@@ -1,161 +0,0 @@
-/**
- * This file is part of the Eclipse Virgo project.
- *
- * Copyright (c) 2011 copyright_holder
- * 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
- *
- * Contributors:
- * cgfrost - initial contribution
- */
-package org.eclipse.virgo.shell.stubs;
-
-import java.io.InputStream;
-import java.util.Set;
-
-import org.eclipse.equinox.region.Region;
-import org.eclipse.equinox.region.RegionDigraph;
-import org.eclipse.equinox.region.RegionDigraphVisitor;
-import org.eclipse.equinox.region.RegionFilter;
-import org.eclipse.equinox.region.RegionDigraph.FilteredRegion;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleException;
-import org.osgi.framework.Version;
-
-/**
- * StubRegion
- */
-public class StubRegion implements Region {
-
- private final String name;
- private final RegionDigraph regionDigraph;
-
- public StubRegion(String name, RegionDigraph regionDigraph) {
- this.name = name;
- this.regionDigraph = regionDigraph;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public String getName() {
- return this.name;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void addBundle(Bundle bundle) throws BundleException {
-
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void addBundle(long bundleId) {
-
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Bundle installBundle(String location, InputStream input) throws BundleException {
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Bundle installBundle(String location) throws BundleException {
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Set<Long> getBundleIds() {
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean contains(Bundle bundle) {
- return false;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean contains(long bundleId) {
- return false;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Bundle getBundle(String symbolicName, Version version) {
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void connectRegion(Region headRegion, RegionFilter filter) throws BundleException {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public RegionDigraph getRegionDigraph() {
- return this.regionDigraph;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void removeBundle(Bundle bundle) {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void removeBundle(long bundleId) {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Set<FilteredRegion> getEdges() {
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void visitSubgraph(RegionDigraphVisitor visitor) {
- }
-
- @Override
- public Bundle installBundleAtLocation(String arg0, InputStream arg1) throws BundleException {
- return null;
- }
-
-}
diff --git a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/stubs/StubRegionDigraph.java b/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/stubs/StubRegionDigraph.java
deleted file mode 100644
index 4668fda9..00000000
--- a/org.eclipse.virgo.shell.command/src/test/java/org/eclipse/virgo/shell/stubs/StubRegionDigraph.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/**
- * This file is part of the Eclipse Virgo project.
- *
- * Copyright (c) 2011 copyright_holder
- * 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
- *
- * Contributors:
- * cgfrost - initial contribution
- */
-package org.eclipse.virgo.shell.stubs;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.equinox.region.Region;
-import org.eclipse.equinox.region.RegionDigraph;
-import org.eclipse.equinox.region.RegionDigraphPersistence;
-import org.eclipse.equinox.region.RegionDigraphVisitor;
-import org.eclipse.equinox.region.RegionFilter;
-import org.eclipse.equinox.region.RegionFilterBuilder;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleException;
-import org.osgi.framework.hooks.bundle.EventHook;
-import org.osgi.framework.hooks.bundle.FindHook;
-import org.osgi.framework.hooks.resolver.ResolverHookFactory;
-
-public class StubRegionDigraph implements RegionDigraph {
-
- private final Map<String, Region> regions = new HashMap<String, Region>();
- private Region defaultRegion;
-
- @Override
- public Iterator<Region> iterator() {
- return this.regions.values().iterator();
- }
-
- @Override
- public Region createRegion(String regionName) throws BundleException {
- StubRegion stubRegion = new StubRegion(regionName, this);
- this.regions.put(regionName, stubRegion);
- return stubRegion;
- }
-
- @Override
- public RegionFilterBuilder createRegionFilterBuilder() {
- return null;
- }
-
- @Override
- public void removeRegion(Region region) {
- this.regions.remove(region.getName());
- }
-
- @Override
- public Set<Region> getRegions() {
- return Collections.unmodifiableSet(new HashSet<Region>(this.regions.values()));
- }
-
- @Override
- public Region getRegion(String regionName) {
- return this.regions.get(regionName);
- }
-
- @Override
- public Region getRegion(Bundle bundle) {
- return null;
- }
-
- @Override
- public Region getRegion(long bundleId) {
- return null;
- }
-
- @Override
- public void connect(Region tailRegion, RegionFilter filter, Region headRegion) throws BundleException {
-
- }
-
- @Override
- public Set<FilteredRegion> getEdges(Region tailRegion) {
- return null;
- }
-
- @Override
- public void visitSubgraph(Region startingRegion, RegionDigraphVisitor visitor) {
-
- }
-
- @Override
- public RegionDigraphPersistence getRegionDigraphPersistence() {
- return null;
- }
-
- @Override
- public RegionDigraph copy() throws BundleException {
- return null;
- }
-
- @Override
- public void replace(RegionDigraph digraph) throws BundleException {
-
- }
-
- @Override
- public ResolverHookFactory getResolverHookFactory() {
- return null;
- }
-
- @Override
- public EventHook getBundleEventHook() {
- return null;
- }
-
- @Override
- public FindHook getBundleFindHook() {
- return null;
- }
-
- @Override
- public org.osgi.framework.hooks.service.EventHook getServiceEventHook() {
- return null;
- }
-
- @Override
- public org.osgi.framework.hooks.service.FindHook getServiceFindHook() {
- return null;
- }
-
- @Override
- public void setDefaultRegion(Region defaultRegion) {
- this.defaultRegion = defaultRegion;
- }
-
- @Override
- public Region getDefaultRegion() {
- return this.defaultRegion;
- }
-
-}

Back to the top