summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-01-22 01:00:00 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-01-22 01:00:00 +0000
commit65716670460fff72be3ff7975ab6d0fb699089ed (patch)
tree080bd7ff1b8c727bb8f9547e303363274cd91fcb /java
parentca8b8139786c755c9892dd9d70ba52c044db9f8c (diff)
Fix the test case so that they can work with OSGi
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@736511 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java2
-rw-r--r--java/sca/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java b/java/sca/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java
index f14191c411..b7aa70f122 100644
--- a/java/sca/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java
+++ b/java/sca/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java
@@ -46,7 +46,7 @@ public class CalculatorRMIReferenceTestCase {
Registry rmiRegistry = LocateRegistry.createRegistry(8099);
rmiRegistry.bind("CalculatorRMIService", rmiCalculatorImpl);
- String uri = ContributionLocationHelper.getContributionLocation("CalculatorRMIReference.composite");
+ String uri = ContributionLocationHelper.getContributionLocation(CalculatorService.class);
Contribution contribution = new Contribution("c1", uri);
node = NodeFactory.newInstance().createNode("CalculatorRMIReference.composite", contribution);
node.start();
diff --git a/java/sca/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java b/java/sca/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java
index aafde63738..eb824679a8 100644
--- a/java/sca/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java
+++ b/java/sca/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java
@@ -40,7 +40,7 @@ public class CalculatorRMIServerTestCase {
@BeforeClass
public static void setUp() throws Exception {
- String uri = ContributionLocationHelper.getContributionLocation("CalculatorRMIServer.composite");
+ String uri = ContributionLocationHelper.getContributionLocation(CalculatorService.class);
Contribution contribution = new Contribution("c1", uri);
node = NodeFactory.newInstance().createNode("CalculatorRMIServer.composite", contribution);
node.start();