diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-11-30 14:23:47 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-11-30 14:23:47 +0000 |
commit | 7c7403152d1c7098ec225305be8d7efd761ae8d2 (patch) | |
tree | e85886168731363d796ec65bbaaa423ada6f6108 /branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms | |
parent | c8f58fe2afa3f2f3bdf86846a48cb5a6dd7d503b (diff) |
Remove delimited test as we don't have an example delimited wire format. Add a JMS Object example
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@721821 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/itest/jms-format/src/test/java/org/apache/tuscany/sca/binding/jms')
-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 |