Author: antelder
Date: Thu Feb 19 18:41:18 2009
New Revision: 745956

URL: http://svn.apache.org/viewvc?rev=745956&view=rev
Log:
TUSCANY-2861: Add an itest for sending/receiving null

Added:
    tuscany/branches/sca-java-1.x/itest/jms-nulls/   (with props)
    tuscany/branches/sca-java-1.x/itest/jms-nulls/.externalToolBuilders/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/.externalToolBuilders/Maven_Ant_Builder.launch
    tuscany/branches/sca-java-1.x/itest/jms-nulls/maven-eclipse.xml
    tuscany/branches/sca-java-1.x/itest/jms-nulls/pom.xml
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/jndi.properties
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/nulls.composite
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/
    tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/tuscany/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/tuscany/sca/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/tuscany/sca/binding/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/tuscany/sca/binding/jms/
    
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java

Propchange: tuscany/branches/sca-java-1.x/itest/jms-nulls/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Feb 19 18:41:18 2009
@@ -0,0 +1,20 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+maven-eclipse.xml
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders

Added: 
tuscany/branches/sca-java-1.x/itest/jms-nulls/.externalToolBuilders/Maven_Ant_Builder.launch
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-nulls/.externalToolBuilders/Maven_Ant_Builder.launch?rev=745956&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-nulls/.externalToolBuilders/Maven_Ant_Builder.launch
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-nulls/.externalToolBuilders/Maven_Ant_Builder.launch
 Thu Feb 19 18:41:18 2009
@@ -0,0 +1,24 @@
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+  <booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" 
value="false"/>
+  <stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" 
value="full,incremental,auto,clean"/>
+  <booleanAttribute 
key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+  <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" 
value="true"/>
+  <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" 
value="itest-jms-nulls"/>
+  <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" 
value="true"/>
+  <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" 
value="${build_project}/maven-eclipse.xml"/>
+  <stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" 
value="${build_project}"/>
+  <stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" 
value="${project}"/>
+  <booleanAttribute key="org.eclipse.debug.core.capture_output" value="false"/>
+  <stringAttribute key="org.eclipse.ui.externaltools.ATTR_BUILD_SCOPE" 
value="${working_set:&lt;?xml 
version=&apos;1.0&apos;?&gt;&lt;launchConfigurationWorkingSet 
editPageId=&apos;org.eclipse.ui.resourceWorkingSetPage&apos; 
factoryID=&apos;org.eclipse.ui.internal.WorkingSetFactory&apos; 
label=&apos;workingSet&apos; name=&apos;workingSet&apos;&gt;&lt;item 
factoryID=&apos;org.eclipse.ui.internal.model.ResourceFactory&apos; 
path=&apos;itest-jms-nulls&apos; 
type=&apos;4&apos;/&gt;&lt;/launchConfigurationWorkingSet&gt;}"/>
+  <stringAttribute key="process_factory_id" 
value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+  <booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
+  <booleanAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_OUTPUT_ON" 
value="false"/>
+  <booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" 
value="true"/>
+  <stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" 
value="org.eclipse.ant.ui.AntClasspathProvider"/>
+  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+    <listEntry value="1"/>
+  </listAttribute>
+  <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+    <listEntry value="/itest-jms-nulls/maven-eclipse.xml"/>
+  </listAttribute>
+</launchConfiguration>
\ No newline at end of file

Added: tuscany/branches/sca-java-1.x/itest/jms-nulls/maven-eclipse.xml
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-nulls/maven-eclipse.xml?rev=745956&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/itest/jms-nulls/maven-eclipse.xml (added)
+++ tuscany/branches/sca-java-1.x/itest/jms-nulls/maven-eclipse.xml Thu Feb 19 
18:41:18 2009
@@ -0,0 +1,8 @@
+<project default="copy-resources">
+  <target name="init"/>
+  <target name="copy-resources" depends="init">
+    <copy todir="target/classes/META-INF" filtering="true">
+      <fileset dir="." includes="LICENSE|NOTICE"/>
+    </copy>
+  </target>
+</project>
\ No newline at end of file

Added: tuscany/branches/sca-java-1.x/itest/jms-nulls/pom.xml
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-nulls/pom.xml?rev=745956&view=auto
==============================================================================
--- tuscany/branches/sca-java-1.x/itest/jms-nulls/pom.xml (added)
+++ tuscany/branches/sca-java-1.x/itest/jms-nulls/pom.xml Thu Feb 19 18:41:18 
2009
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-itest</artifactId>
+        <version>1.5-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <artifactId>itest-jms-nulls</artifactId>
+    <name>Apache Tuscany SCA iTest JMS Nulls</name>
+
+    <repositories>
+       <repository>
+          <id>apache.incubator</id>
+          <url>http://people.apache.org/repo/m2-incubating-repository</url>
+       </repository>
+    </repositories>
+
+    <dependencies>
+        
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <version>1.5-SNAPSHOT</version>
+        </dependency>        
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-embedded</artifactId>
+            <version>1.5-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency> 
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>1.5-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-jms-runtime</artifactId>
+            <version>1.5-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-jms-asf</artifactId>
+            <version>1.5-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.5</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-node-impl</artifactId>
+            <version>1.5-SNAPSHOT</version>
+            <scope>test</scope>
+        </dependency>
+
+        <!--  uses ActiveMQ 5.1 as 4.1 Session.createQueue does not work using
+              a temporary queue name -->
+        <dependency>
+            <groupId>org.apache.activemq</groupId>
+            <artifactId>activemq-core</artifactId>
+            <version>5.1.0</version>
+        </dependency>
+                
+    </dependencies>
+
+    <build>
+       <finalName>${artifactId}</finalName>
+    </build>
+</project>

Added: 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java?rev=745956&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java
 Thu Feb 19 18:41:18 2009
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.jms;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+/**
+ * This class implements the OneWay service.
+ */
+...@service(MyService.class)
+public class ClientImpl implements MyService {
+
+    private MyService serviceA;
+
+    @Reference
+    public void setServiceA(MyService service) {
+        this.serviceA = service;
+    }
+
+    public void sayHello() {
+        serviceA.sayHello();
+    }
+
+}

Added: 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java?rev=745956&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java
 Thu Feb 19 18:41:18 2009
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.jms;
+
+import org.osoa.sca.annotations.Remotable;
+
+...@remotable
+public interface MyService {
+    
+    void sayHello();
+
+}

Added: 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java?rev=745956&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/java/org/apache/tuscany/sca/binding/jms/ServiceImpl.java
 Thu Feb 19 18:41:18 2009
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package org.apache.tuscany.sca.binding.jms;
+
+
+public class ServiceImpl implements MyService {
+
+    public void sayHello() {
+    }
+
+}

Added: 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/jndi.properties
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/jndi.properties?rev=745956&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/jndi.properties
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/jndi.properties
 Thu Feb 19 18:41:18 2009
@@ -0,0 +1,38 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+## 
+## http://www.apache.org/licenses/LICENSE-2.0
+## 
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+# START SNIPPET: jndi
+
+java.naming.factory.initial = 
org.apache.activemq.jndi.ActiveMQInitialContextFactory
+
+# use the following property to configure the default connector
+java.naming.provider.url = 
vm://localhost?broker.persistent=false&broker.useJmx=false
+
+# use the following property to specify the JNDI name the connection factory
+# should appear as. 
+#connectionFactoryNames = connectionFactory, queueConnectionFactory, 
topicConnectionFactry
+connectionFactoryNames = ConnectionFactory, ConnectionFactory2
+
+# register some queues in JNDI using the form
+# queue.[jndiName] = [physicalName]
+
+# register some topics in JNDI using the form
+# topic.[jndiName] = [physicalName]
+#topic.MyTopic = example.MyTopic
+topic.ServiceTopic = ServiceTopic
+
+# END SNIPPET: jndi

Added: 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/nulls.composite
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/nulls.composite?rev=745956&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/nulls.composite
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/main/resources/nulls.composite
 Thu Feb 19 18:41:18 2009
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
+           xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"; 
+           targetNamespace="http://jms";
+           xmlns:itest="http://jms";
+           name="Nulls">
+
+    <component name="Client1">
+        <implementation.java 
class="org.apache.tuscany.sca.binding.jms.ClientImpl"/>
+        <reference name="serviceA">
+           <binding.jms uri="jms:MyService" />
+        </reference>
+    </component>
+
+    <component name="Service1">
+        <implementation.java 
class="org.apache.tuscany.sca.binding.jms.ServiceImpl"/>
+        <service name="MyService">
+            <binding.jms />
+        </service> 
+    </component>       
+
+    <component name="Client2">
+        <implementation.java 
class="org.apache.tuscany.sca.binding.jms.ClientImpl"/>
+        <reference name="serviceA">
+           <binding.jms uri="jms:MyService2">
+              <tuscany:wireFormat.jmsObject/>
+           </binding.jms>
+        </reference>
+    </component>
+
+    <component name="Service2">
+        <implementation.java 
class="org.apache.tuscany.sca.binding.jms.ServiceImpl"/>
+        <service name="MyService">
+            <binding.jms uri="jms:MyService2">
+              <tuscany:wireFormat.jmsObject/>
+           </binding.jms>
+        </service> 
+    </component>       
+
+</composite>

Added: 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java?rev=745956&view=auto
==============================================================================
--- 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java
 (added)
+++ 
tuscany/branches/sca-java-1.x/itest/jms-nulls/src/test/java/org/apache/tuscany/sca/binding/jms/NullsTestCase.java
 Thu Feb 19 18:41:18 2009
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.sca.binding.jms;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ */
+public class NullsTestCase {
+
+    private static SCADomain scaDomain;
+
+    @Before
+    public void init() {
+        scaDomain = SCADomain.newInstance("http://localhost";, "/", 
"nulls.composite");
+    }
+
+    @Test
+    public void testSayHello() throws Exception {
+        MyService client1 = scaDomain.getService(MyService.class, "Client1");
+
+        client1.sayHello();
+
+    }
+
+    @Test
+    public void testSayHelloObjectFormat() throws Exception {
+        MyService client1 = scaDomain.getService(MyService.class, "Client2");
+
+        client1.sayHello();
+
+    }
+
+    @After
+    public void end() {
+        if (scaDomain != null) {
+            scaDomain.close();
+        }
+    }
+}


Reply via email to