From 3bee257f052e26a9d08fe21e8725a449ef2f9f42 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 16 Sep 2008 16:09:14 +0000 Subject: 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 --- .../sca/vtest/javaapi/conversation/lifetime/impl/AServiceImpl.java | 2 +- .../sca/vtest/javaapi/conversation/lifetime/LifetimeTestCase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'java/sca/vtest/java-api') 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 ref = context.getServiceReference(CService.class, "c"); + ServiceReference 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(); } -- cgit v1.2.3