diff options
author | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2008-11-06 16:38:56 +0000 |
---|---|---|
committer | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2008-11-06 16:38:56 +0000 |
commit | ce178b299f1098c72ef6c5ead574943ae28febf1 (patch) | |
tree | 824320a1bf2241318159cf5efd11c91185470b80 /sandbox/event/samples/event-jms/src/test/java/weather | |
parent | ff3b544e097687169d9108a00cc64a36a680184c (diff) |
Added a second pair of components with producer / consumer relationship, this time connected by binding.sca within one composite.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@711900 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sandbox/event/samples/event-jms/src/test/java/weather/WeatherTestCase.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sandbox/event/samples/event-jms/src/test/java/weather/WeatherTestCase.java b/sandbox/event/samples/event-jms/src/test/java/weather/WeatherTestCase.java index dfff7cc666..71162c7538 100644 --- a/sandbox/event/samples/event-jms/src/test/java/weather/WeatherTestCase.java +++ b/sandbox/event/samples/event-jms/src/test/java/weather/WeatherTestCase.java @@ -37,6 +37,7 @@ public class WeatherTestCase { private BrokerService jmsBroker; private WeatherService weatherService; + private WeatherService weatherService2; private SCADomain weatherSubscriberDomain; private SCADomain weatherPublisherDomain; @@ -50,7 +51,7 @@ public class WeatherTestCase { weatherPublisherDomain = SCADomain.newInstance("weatherPublisher.composite"); weatherSubscriberDomain = SCADomain.newInstance("weatherSubscriber.composite"); weatherService = weatherPublisherDomain.getService(WeatherService.class, "WeatherPublisherComponent"); - + weatherService2 = weatherPublisherDomain.getService(WeatherService.class, "WeatherPublisherComponent2"); } catch (Throwable e) { e.printStackTrace(); } @@ -59,6 +60,7 @@ public class WeatherTestCase { @Test public void runWeatherTest() throws Exception { weatherService.start(); + weatherService2.start(); } |