From 3cf294786a4a1da99139389a473b4216ef8205c4 Mon Sep 17 00:00:00 2001 From: nash Date: Sat, 15 May 2010 15:26:34 +0000 Subject: Merge revision r944274 from trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@944665 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/java/scatours/AirportCodesTestCase.java | 56 ------------------- .../src/test/java/scatours/BindingsTestCase.java | 56 ------------------- .../test/java/scatours/CarAutowireTestCase.java | 56 ------------------- .../src/test/java/scatours/CarPartnerTestCase.java | 56 ------------------- .../test/java/scatours/CarWireElementTestCase.java | 56 ------------------- .../scatours/ComplexPropertyElementTestCase.java | 56 ------------------- .../java/scatours/ComplexPropertyTypeTestCase.java | 56 ------------------- .../java/scatours/CurrencyConverterTestCase.java | 56 ------------------- .../test/java/scatours/MultiDomainTestCase.java | 65 ---------------------- .../test/java/scatours/TripAutowireTestCase.java | 56 ------------------- .../test/java/scatours/TripBookingTestCase.java | 56 ------------------- .../java/scatours/TripWireElementTestCase.java | 56 ------------------- .../using/src/test/resources/jndi.properties | 38 ------------- 13 files changed, 719 deletions(-) delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/AirportCodesTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/BindingsTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarAutowireTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarPartnerTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarWireElementTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/ComplexPropertyElementTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/ComplexPropertyTypeTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CurrencyConverterTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/MultiDomainTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripAutowireTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripBookingTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripWireElementTestCase.java delete mode 100644 sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/resources/jndi.properties (limited to 'sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test') diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/AirportCodesTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/AirportCodesTestCase.java deleted file mode 100644 index 53d9029e7f..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/AirportCodesTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests the AirportCodes component implementation class - */ -public class AirportCodesTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/airportcodes-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "AirportCodesClient"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/BindingsTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/BindingsTestCase.java deleted file mode 100644 index 2daa59245e..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/BindingsTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests services and references with configured bindings - */ -public class BindingsTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/bookings4-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "Bookings4Client"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarAutowireTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarAutowireTestCase.java deleted file mode 100644 index bf20e7cae1..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarAutowireTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests autowiring of references with different multiplicities - */ -public class CarAutowireTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/carbookings3-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "CarBookings3Client"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarPartnerTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarPartnerTestCase.java deleted file mode 100644 index 18e43e7a8b..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarPartnerTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests wiring of references with different multiplicities - */ -public class CarPartnerTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/carbookings1-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "CarBookings1Client"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarWireElementTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarWireElementTestCase.java deleted file mode 100644 index 997460e0ea..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CarWireElementTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests wire elements for references with different multiplicities - */ -public class CarWireElementTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/carbookings2-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "CarBookings2Client"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/ComplexPropertyElementTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/ComplexPropertyElementTestCase.java deleted file mode 100644 index 177b4b2355..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/ComplexPropertyElementTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests complex properties defined as XML Schema global elements - */ -public class ComplexPropertyElementTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/orders1-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "Orders1Client"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/ComplexPropertyTypeTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/ComplexPropertyTypeTestCase.java deleted file mode 100644 index 168d8f3273..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/ComplexPropertyTypeTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests complex properties defined as XML Schema types - */ -public class ComplexPropertyTypeTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/orders2-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "Orders2Client"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CurrencyConverterTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CurrencyConverterTestCase.java deleted file mode 100644 index dec2ae9976..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/CurrencyConverterTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests the CurrencyConverterImpl component implementation class - */ -public class CurrencyConverterTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/converter-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "ConverterClient"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/MultiDomainTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/MultiDomainTestCase.java deleted file mode 100644 index a7028f6d8c..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/MultiDomainTestCase.java +++ /dev/null @@ -1,65 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests the multiple domains with bindings scenario - */ -public class MultiDomainTestCase { - - private SCANode hotelsNode; - private SCANode toursNode; - - @Before - public void startServer() throws Exception { - hotelsNode = SCANodeFactory.newInstance().createSCANode("test-clients/hotelsdomain-client.composite", - new SCAContribution("using", "./target/classes")); - hotelsNode.start(); - toursNode = SCANodeFactory.newInstance().createSCANode("test-clients/toursdomain-client.composite", - new SCAContribution("using", "./target/classes")); - toursNode.start(); - } - - @Test - public void testImpl() { - Runnable hotelsClient = ((SCAClient)hotelsNode).getService(Runnable.class, "HotelsDomainClient"); - hotelsClient.run(); - Runnable toursClient = ((SCAClient)toursNode).getService(Runnable.class, "ToursDomainClient"); - toursClient.run(); - } - - @After - public void stopServer() throws Exception { - if (toursNode != null) { - toursNode.stop(); - } - if (hotelsNode != null) { - hotelsNode.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripAutowireTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripAutowireTestCase.java deleted file mode 100644 index a6f1df98ef..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripAutowireTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests the use of autowire in the Trip Booking implementation scenario - */ -public class TripAutowireTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/bookings3-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "Bookings3Client"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripBookingTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripBookingTestCase.java deleted file mode 100644 index d08d176464..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripBookingTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests the Trip Booking implementation scenario - */ -public class TripBookingTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/bookings1-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "Bookings1Client"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripWireElementTestCase.java b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripWireElementTestCase.java deleted file mode 100644 index 36811a98d8..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/java/scatours/TripWireElementTestCase.java +++ /dev/null @@ -1,56 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests the use of wire elements in the Trip Booking implementation scenario - */ -public class TripWireElementTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - node = SCANodeFactory.newInstance().createSCANode("test-clients/bookings2-client.composite", - new SCAContribution("using", "./target/classes")); - node.start(); - } - - @Test - public void testImpl() { - Runnable client = ((SCAClient)node).getService(Runnable.class, "Bookings2Client"); - client.run(); - } - - @After - public void stopServer() throws Exception { - if (node != null) { - node.stop(); - } - } -} diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/resources/jndi.properties b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/resources/jndi.properties deleted file mode 100644 index 80236a8e6c..0000000000 --- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/using/src/test/resources/jndi.properties +++ /dev/null @@ -1,38 +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. -## --------------------------------------------------------------------------- - -# 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 - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.Bookings = BookingsRequestQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi -- cgit v1.2.3