diff options
Diffstat (limited to 'branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format')
-rw-r--r-- | branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSObjectTestCase.java (renamed from branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSDelimitedTestCase.java) | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSDelimitedTestCase.java b/branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSObjectTestCase.java index 9f365ba3c1..5306497a3f 100644 --- a/branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSDelimitedTestCase.java +++ b/branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms/format/FormatJMSObjectTestCase.java @@ -20,7 +20,7 @@ package org.apache.tuscany.sca.binding.jms.format; import static org.junit.Assert.assertEquals; -import org.apache.tuscany.sca.binding.jms.format.jmsdelimited.helloworld.HelloWorldReference; +import org.apache.tuscany.sca.binding.jms.format.jmsobject.helloworld.HelloWorldReference; import org.apache.tuscany.sca.node.SCAClient; import org.apache.tuscany.sca.node.SCAContribution; import org.apache.tuscany.sca.node.SCANode; @@ -34,31 +34,27 @@ import org.junit.Test; /** * This shows how to test the JMS binding using a simple HelloWorld application. */ -public class FormatJMSDelimitedTestCase { +public class FormatJMSObjectTestCase { private static SCANode node; @Before public void init() { SCANodeFactory factory = SCANodeFactory.newInstance(); - node = factory.createSCANode("jmsdelimited/helloworld.composite", - new SCAContribution("test", "./target/classes")); + node = factory.createSCANode("jmsobject/helloworld.composite", + new SCAContribution("test", "./target/classes")); node.start(); } - /** - * The delimited wrie format is not yet implemented - * - */ @Test - @Ignore public void testHelloWorldCreate() throws Exception { - HelloWorldReference helloWorldService = ((SCAClient)node).getService(HelloWorldReference.class, "HelloWorldReferenceComponent"); - - System.out.println(helloWorldService.getGreetings("Fred", "Bloggs")); - //assertEquals("Hello Fred Bloggs", helloWorldService.getGreetings("Fred Bloggs")); - + HelloWorldReference helloWorldService = ((SCAClient) node).getService( + HelloWorldReference.class, "HelloWorldReferenceComponent"); + + assertEquals("Hello Fred Hello Bloggs", + helloWorldService.getGreetings("Fred", "Bloggs")); + } @After |