Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.virgo.kernel.shell')
-rw-r--r--org.eclipse.virgo.kernel.shell/src/test/java/org/eclipse/virgo/kernel/shell/internal/commands/StubRuntimeArtifactModelObjectNameCreator.java17
1 files changed, 5 insertions, 12 deletions
diff --git a/org.eclipse.virgo.kernel.shell/src/test/java/org/eclipse/virgo/kernel/shell/internal/commands/StubRuntimeArtifactModelObjectNameCreator.java b/org.eclipse.virgo.kernel.shell/src/test/java/org/eclipse/virgo/kernel/shell/internal/commands/StubRuntimeArtifactModelObjectNameCreator.java
index f29ae286..133cf1a2 100644
--- a/org.eclipse.virgo.kernel.shell/src/test/java/org/eclipse/virgo/kernel/shell/internal/commands/StubRuntimeArtifactModelObjectNameCreator.java
+++ b/org.eclipse.virgo.kernel.shell/src/test/java/org/eclipse/virgo/kernel/shell/internal/commands/StubRuntimeArtifactModelObjectNameCreator.java
@@ -20,19 +20,11 @@ import org.eclipse.virgo.kernel.model.management.RuntimeArtifactModelObjectNameC
import org.osgi.framework.Version;
public final class StubRuntimeArtifactModelObjectNameCreator implements RuntimeArtifactModelObjectNameCreator {
-
- public ObjectName createModel(Artifact artifact) {
- throw new UnsupportedOperationException();
- }
public ObjectName createArtifactModel(Artifact artifact) {
throw new UnsupportedOperationException();
}
- public ObjectName createModel(String type, String name, Version version) {
- throw new RuntimeException("Not supported");
- }
-
@Override
public ObjectName createArtifactModel(String type, String name, Version version, Region region) {
try {
@@ -74,12 +66,13 @@ public final class StubRuntimeArtifactModelObjectNameCreator implements RuntimeA
return objectName.getKeyProperty("name");
}
- public String getType(ObjectName objectName) {
- return objectName.getKeyProperty("type");
- }
-
public String getVersion(ObjectName objectName) {
return objectName.getKeyProperty("version");
}
+ @Override
+ public String getRegion(ObjectName objectName) {
+ return objectName.getKeyProperty("region");
+ }
+
}

Back to the top