summaryrefslogtreecommitdiffstats
path: root/java/sca/vtest/java-api
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-09-16 16:09:14 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-09-16 16:09:14 +0000
commit3bee257f052e26a9d08fe21e8725a449ef2f9f42 (patch)
tree32c40ce1f7a28748249cb786ea505e103c1d7732 /java/sca/vtest/java-api
parent109b9298884b8fb99af43dbcd912202e62ded87e (diff)
TUSCANY-2243 You can't get at references that are not defined in the component type (see TUSCANY-2501) so I've fixed this test to retrieve a a reference to "b" which is defined in the component type.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@695956 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/vtest/java-api')
-rw-r--r--java/sca/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/impl/AServiceImpl.java2
-rw-r--r--java/sca/vtest/java-api/conversation/lifetime/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/LifetimeTestCase.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/impl/AServiceImpl.java b/java/sca/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/impl/AServiceImpl.java
index 1a1574561d..56bfcabfc4 100644
--- a/java/sca/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/impl/AServiceImpl.java
+++ b/java/sca/vtest/java-api/conversation/lifetime/src/main/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/impl/AServiceImpl.java
@@ -57,7 +57,7 @@ public class AServiceImpl implements AService, AServiceCallback {
}
public void testConversationStarted2() {
- ServiceReference<CService> ref = context.getServiceReference(CService.class, "c");
+ ServiceReference<BService> ref = context.getServiceReference(BService.class, "b");
ref.getService().setState("Some state");
Assert.assertNotNull(ref.getConversation().getConversationID());
}
diff --git a/java/sca/vtest/java-api/conversation/lifetime/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/LifetimeTestCase.java b/java/sca/vtest/java-api/conversation/lifetime/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/LifetimeTestCase.java
index 2e5785f7d3..987ac3539f 100644
--- a/java/sca/vtest/java-api/conversation/lifetime/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/LifetimeTestCase.java
+++ b/java/sca/vtest/java-api/conversation/lifetime/src/test/java/org/apache/tuscany/sca/vtest/javaapi/conversation/lifetime/LifetimeTestCase.java
@@ -73,7 +73,7 @@ public class LifetimeTestCase {
* method of the service is called.
*/
@Test
- @Ignore("TUSCANY-2243")
+ //@Ignore("TUSCANY-2243")
public void lifetime2() throws Exception {
aService.testConversationStarted2();
}