From 5e520b1b65c79cd828057cb628b9367acb266880 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:05:59 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835117 13f79535-47bb-0310-9956-ffa450edef68 --- .../jms/DoesntProcessActivationSpecTestCase.java | 60 --------------------- .../jms/DoesntProcessDestinationTypeTestCase.java | 60 --------------------- .../binding/jms/DoesntProcessHeadersTestCase.java | 62 ---------------------- .../jms/DoesntProcessResourceAdapterTestCase.java | 60 --------------------- ...oesntProcessResponseActivationSpecTestCase.java | 60 --------------------- ...ntProcessResponseConnectionFactoryTestCase.java | 60 --------------------- ...esntProcessResponseDestinationTypeTestCase.java | 60 --------------------- .../jms/InvalidCorrelationSchemeTestCase.java | 60 --------------------- .../jms/InvalidJMSDeliveryModeTestCase.java | 60 --------------------- .../binding/jms/InvalidJMSPriorityTestCase.java | 60 --------------------- .../InvalidResponseDestinationTypeTestCase.java | 60 --------------------- .../jms/MissingActivationSpecNameTestCase.java | 60 --------------------- .../jms/MissingConnectionFactoryNameTestCase.java | 60 --------------------- .../jms/MissingResponseActivationSpecTestCase.java | 60 --------------------- .../MissingResponseConnectionFactoryTestCase.java | 60 --------------------- .../binding/jms/MustStartWithSchemaTestCase.java | 60 --------------------- .../binding/jms/UnexpectedElementTestCase.java | 60 --------------------- .../jms/UnexpectedResponseElementTestCase.java | 60 --------------------- .../binding/jms/UnknownTokenInURITestCase.java | 60 --------------------- 19 files changed, 1142 deletions(-) delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessActivationSpecTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessDestinationTypeTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessHeadersTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResourceAdapterTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseActivationSpecTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseConnectionFactoryTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseDestinationTypeTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidCorrelationSchemeTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidResponseDestinationTypeTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/MissingActivationSpecNameTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/MissingConnectionFactoryNameTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/MissingResponseActivationSpecTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/MissingResponseConnectionFactoryTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/MustStartWithSchemaTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/UnexpectedElementTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/UnexpectedResponseElementTestCase.java delete mode 100644 branches/sca-android/itest/validation/src/test/java/binding/jms/UnknownTokenInURITestCase.java (limited to 'branches/sca-android/itest/validation/src/test/java/binding/jms') diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessActivationSpecTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessActivationSpecTestCase.java deleted file mode 100644 index e0e5347d96..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessActivationSpecTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 DoesntProcessActivationSpecTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessActivationSpec/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessActivationSpec/"); - } 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("DoesntProcessActivationSpec", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessDestinationTypeTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessDestinationTypeTestCase.java deleted file mode 100644 index 9e08afec09..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessDestinationTypeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 DoesntProcessDestinationTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessDestinationType/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessDestinationType/"); - } 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("DoesntProcessDestinationType", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessHeadersTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessHeadersTestCase.java deleted file mode 100644 index ed96072780..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessHeadersTestCase.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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 org.junit.Ignore; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class DoesntProcessHeadersTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessHeaders/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessHeaders/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - @Ignore("TUSCANY-2532") - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultLoggingMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); -// assertEquals("DoesntProcessHeaders", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResourceAdapterTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResourceAdapterTestCase.java deleted file mode 100644 index a2a5b0b872..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResourceAdapterTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 DoesntProcessResourceAdapterTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessResourceAdapter/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessResourceAdapter/"); - } 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("DoesntProcessResourceAdapter", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseActivationSpecTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseActivationSpecTestCase.java deleted file mode 100644 index 64b41623de..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseActivationSpecTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 DoesntProcessResponseActivationSpecTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessResponseActivationSpec/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessResponseActivationSpec/"); - } 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("DoesntProcessResponseActivationSpec", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseConnectionFactoryTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseConnectionFactoryTestCase.java deleted file mode 100644 index 86fbe51dad..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseConnectionFactoryTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 DoesntProcessResponseConnectionFactoryTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessResponseConnectionFactory/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessResponseConnectionFactory/"); - } 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("DoesntProcessResponseConnectionFactory", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseDestinationTypeTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseDestinationTypeTestCase.java deleted file mode 100644 index 6e884c41cd..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/DoesntProcessResponseDestinationTypeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 DoesntProcessResponseDestinationTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessResponseDestinationType/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessResponseDestinationType/"); - } 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("DoesntProcessResponseDestinationType", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidCorrelationSchemeTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidCorrelationSchemeTestCase.java deleted file mode 100644 index c237f8af18..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidCorrelationSchemeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 InvalidCorrelationSchemeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/InvalidCorrelationScheme/service.composite", - "TestContribution", "src/main/resources/bindingjms/InvalidCorrelationScheme/"); - } 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("InvalidCorrelationScheme", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java deleted file mode 100644 index 52dc7e5795..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java deleted file mode 100644 index a93df290c3..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidResponseDestinationTypeTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidResponseDestinationTypeTestCase.java deleted file mode 100644 index 949ec02134..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/InvalidResponseDestinationTypeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 InvalidResponseDestinationTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/InvalidResponseDestinationType/service.composite", - "TestContribution", "src/main/resources/bindingjms/InvalidResponseDestinationType/"); - } 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("InvalidResponseDestinationType", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingActivationSpecNameTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingActivationSpecNameTestCase.java deleted file mode 100644 index a974ef0db4..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingActivationSpecNameTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 MissingActivationSpecNameTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MissingActivationSpecName/service.composite", - "TestContribution", "src/main/resources/bindingjms/MissingActivationSpecName/"); - } 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("MissingActivationSpecName", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingConnectionFactoryNameTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingConnectionFactoryNameTestCase.java deleted file mode 100644 index adbaa50dc0..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingConnectionFactoryNameTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 MissingConnectionFactoryNameTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MissingConnectionFactoryName/service.composite", - "TestContribution", "src/main/resources/bindingjms/MissingConnectionFactoryName/"); - } 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("MissingConnectionFactoryName", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingResponseActivationSpecTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingResponseActivationSpecTestCase.java deleted file mode 100644 index 4bba6b74de..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingResponseActivationSpecTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 MissingResponseActivationSpecTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MissingResponseActivationSpec/service.composite", - "TestContribution", "src/main/resources/bindingjms/MissingResponseActivationSpec/"); - } 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("MissingResponseActivationSpec", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingResponseConnectionFactoryTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingResponseConnectionFactoryTestCase.java deleted file mode 100644 index 8f4fc1a739..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/MissingResponseConnectionFactoryTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 MissingResponseConnectionFactoryTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MissingResponseConnectionFactory/service.composite", - "TestContribution", "src/main/resources/bindingjms/MissingResponseConnectionFactory/"); - } 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("MissingResponseConnectionFactory", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/MustStartWithSchemaTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/MustStartWithSchemaTestCase.java deleted file mode 100644 index d9e1c782a8..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/MustStartWithSchemaTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 MustStartWithSchemaTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MustStartWithSchema/service.composite", - "TestContribution", "src/main/resources/bindingjms/MustStartWithSchema/"); - } 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("MustStartWithSchema", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/UnexpectedElementTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/UnexpectedElementTestCase.java deleted file mode 100644 index 3e4e36d839..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/UnexpectedElementTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 UnexpectedElementTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/UnexpectedElement/service.composite", - "TestContribution", "src/main/resources/bindingjms/UnexpectedElement/"); - } 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("UnexpectedElement", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/UnexpectedResponseElementTestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/UnexpectedResponseElementTestCase.java deleted file mode 100644 index 60ea47a85f..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/UnexpectedResponseElementTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 UnexpectedResponseElementTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/UnexpectedResponseElement/service.composite", - "TestContribution", "src/main/resources/bindingjms/UnexpectedResponseElement/"); - } 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("UnexpectedResponseElement", problem.getMessageId()); - } -} diff --git a/branches/sca-android/itest/validation/src/test/java/binding/jms/UnknownTokenInURITestCase.java b/branches/sca-android/itest/validation/src/test/java/binding/jms/UnknownTokenInURITestCase.java deleted file mode 100644 index 6a75a35f99..0000000000 --- a/branches/sca-android/itest/validation/src/test/java/binding/jms/UnknownTokenInURITestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 UnknownTokenInURITestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/UnknownTokenInURI/service.composite", - "TestContribution", "src/main/resources/bindingjms/UnknownTokenInURI/"); - } 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("UnknownTokenInURI", problem.getMessageId()); - } -} -- cgit v1.2.3