Author: antelder
Date: Thu Aug  7 01:43:53 2008
New Revision: 683553

URL: http://svn.apache.org/viewvc?rev=683553&view=rev
Log:
Apply patch from Ramkumar Ramalingam for TUSCANY-2532: Test case failure in 
itest/validation DoesntProcessHeadersTestCase

Added:
    
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/
    
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite
    
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/
    
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite
    
tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java
    
tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java
Modified:
    
tuscany/java/sca/itest/validation/src/main/resources/impl/osgi/MissingComponentTypeFile/OSGiTestService.jar
    
tuscany/java/sca/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/OSGiTestService.jar

Added: 
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite?rev=683553&view=auto
==============================================================================
--- 
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite
 (added)
+++ 
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite
 Thu Aug  7 01:43:53 2008
@@ -0,0 +1,36 @@
+<?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";
+           name="RPCComposite">
+
+    <component name="HelloWorldService">
+        <implementation.java class="binding.jms.HelloWorldServiceImpl"/>
+        <service name="HelloWorldService">
+            <binding.jms 
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" 
jndiURL="tcp://localhost:61616">
+               <destination name="DestQueueA" create="always"/>
+               <response>
+                  <destination name="RespQueueA" create="always"/>
+               </response>
+               <headers JMSType="jms" JMSDeliveryMode="NON_PERSISTENTS" 
JMSPriority="8"/>
+            </binding.jms>  
+        </service> 
+    </component>       
+
+</composite>

Added: 
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite?rev=683553&view=auto
==============================================================================
--- 
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite
 (added)
+++ 
tuscany/java/sca/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite
 Thu Aug  7 01:43:53 2008
@@ -0,0 +1,36 @@
+<?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";
+           name="RPCComposite">
+
+    <component name="HelloWorldService">
+        <implementation.java class="binding.jms.HelloWorldServiceImpl"/>
+        <service name="HelloWorldService">
+            <binding.jms 
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" 
jndiURL="tcp://localhost:61616">
+               <destination name="DestQueueA" create="always"/>
+               <response>
+                  <destination name="RespQueueA" create="always"/>
+               </response>
+               <headers JMSType="jms" JMSDeliveryMode="NON_PERSISTENT" 
JMSPriority="20"/>
+            </binding.jms>  
+        </service> 
+    </component>       
+
+</composite>

Modified: 
tuscany/java/sca/itest/validation/src/main/resources/impl/osgi/MissingComponentTypeFile/OSGiTestService.jar
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/itest/validation/src/main/resources/impl/osgi/MissingComponentTypeFile/OSGiTestService.jar?rev=683553&r1=683552&r2=683553&view=diff
==============================================================================
Binary files - no diff available.

Modified: 
tuscany/java/sca/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/OSGiTestService.jar
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/OSGiTestService.jar?rev=683553&r1=683552&r2=683553&view=diff
==============================================================================
Binary files - no diff available.

Added: 
tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java?rev=683553&view=auto
==============================================================================
--- 
tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java
 (added)
+++ 
tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java
 Thu Aug  7 01:43:53 2008
@@ -0,0 +1,60 @@
+/*
+ * 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 binding.jms;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.monitor.Monitor;
+import org.apache.tuscany.sca.monitor.Problem;
+import org.apache.tuscany.sca.monitor.logging.impl.DefaultLoggingMonitorImpl;
+
+import domain.CustomCompositeBuilder;
+
+/**
+ * This shows how to test the Calculator service component.
+ */
+public class InvalidJMSDeliveryModeTestCase extends TestCase {
+
+    private CustomCompositeBuilder customDomain;
+
+    @Override
+    protected void setUp() throws Exception 
+    {
+        customDomain = CustomCompositeBuilder.getInstance();
+        try {
+              
customDomain.loadContribution("src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite",
 
+                        "TestContribution", 
"src/main/resources/bindingjms/InvalidJMSDeliveryMode/");
+        } catch (Exception ex){
+            //throw ex;
+        }
+    }
+
+    @Override
+    protected void tearDown() throws Exception {
+        //node.stop();
+    }
+
+    public void testCalculator() {
+       Monitor monitor = customDomain.getMonitorInstance();
+       Problem problem = 
((DefaultLoggingMonitorImpl)monitor).getLastLoggedProblem();
+        
+       assertNotNull(problem);
+        assertEquals("InvalidJMSDeliveryMode", problem.getMessageId()); 
+    }
+}

Added: 
tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java?rev=683553&view=auto
==============================================================================
--- 
tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java
 (added)
+++ 
tuscany/java/sca/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java
 Thu Aug  7 01:43:53 2008
@@ -0,0 +1,60 @@
+/*
+ * 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 binding.jms;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.monitor.Monitor;
+import org.apache.tuscany.sca.monitor.Problem;
+import org.apache.tuscany.sca.monitor.logging.impl.DefaultLoggingMonitorImpl;
+
+import domain.CustomCompositeBuilder;
+
+/**
+ * This shows how to test the Calculator service component.
+ */
+public class InvalidJMSPriorityTestCase extends TestCase {
+
+    private CustomCompositeBuilder customDomain;
+
+    @Override
+    protected void setUp() throws Exception 
+    {
+        customDomain = CustomCompositeBuilder.getInstance();
+        try {
+              
customDomain.loadContribution("src/main/resources/bindingjms/InvalidJMSPriority/service.composite",
 
+                        "TestContribution", 
"src/main/resources/bindingjms/InvalidJMSPriority/");
+        } catch (Exception ex){
+            //throw ex;
+        }
+    }
+
+    @Override
+    protected void tearDown() throws Exception {
+        //node.stop();
+    }
+
+    public void testCalculator() {
+       Monitor monitor = customDomain.getMonitorInstance();
+       Problem problem = 
((DefaultLoggingMonitorImpl)monitor).getLastLoggedProblem();
+        
+       assertNotNull(problem);
+        assertEquals("InvalidJMSPriority", problem.getMessageId()); 
+    }
+}


Reply via email to