From 3ac2d800d840f03618fc364090d786effde84b1f Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:13:16 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835142 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca-java-20080910/itest/large-sdo-ws/pom.xml | 141 -------------------- .../tuscany/sca/itest/trninq/TrnInqClient.java | 43 ------ .../tuscany/sca/itest/trninq/TrnInqService.java | 112 ---------------- .../tuscany/sca/itest/trninq/TrninqInterface.java | 38 ------ .../main/resources/META-INF/sca-contribution.xml | 23 ---- .../src/main/resources/trnInq.composite | 39 ------ .../src/main/resources/wsdl/IFX170_XSD.xsd | 146 --------------------- .../src/main/resources/wsdl/trninq.wsdl | 57 -------- .../test/java/trninq/TrnInqServiceTestCase.java | 87 ------------ 9 files changed, 686 deletions(-) delete mode 100644 branches/sca-java-20080910/itest/large-sdo-ws/pom.xml delete mode 100644 branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrnInqClient.java delete mode 100644 branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrnInqService.java delete mode 100644 branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrninqInterface.java delete mode 100644 branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/trnInq.composite delete mode 100644 branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/wsdl/IFX170_XSD.xsd delete mode 100644 branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/wsdl/trninq.wsdl delete mode 100644 branches/sca-java-20080910/itest/large-sdo-ws/src/test/java/trninq/TrnInqServiceTestCase.java (limited to 'branches/sca-java-20080910/itest/large-sdo-ws') diff --git a/branches/sca-java-20080910/itest/large-sdo-ws/pom.xml b/branches/sca-java-20080910/itest/large-sdo-ws/pom.xml deleted file mode 100644 index 64aba086cb..0000000000 --- a/branches/sca-java-20080910/itest/large-sdo-ws/pom.xml +++ /dev/null @@ -1,141 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 1.4-SNAPSHOT - ../pom.xml - - itest-large-sdo-ws - jar - Apache Tuscany SCA Web Service with Large SDO Integration Tests - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.4-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.4-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.4-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-databinding-sdo - 1.4-SNAPSHOT - compile - - - - javax.servlet - servlet-api - 2.4 - test - - - - junit - junit - 4.2 - test - - - - - - - - default - - true - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 1.4-SNAPSHOT - runtime - - - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-test-source - - - - target/sdo-source - - - - - - - org.apache.tuscany.sdo - tuscany-sdo-plugin - 1.1.1 - - - generate-ifx-sdo - generate-sources - - - - ${basedir}/src/main/resources/wsdl/IFX170_XSD.xsd - true - - - - - generate - - - - - - - - diff --git a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrnInqClient.java b/branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrnInqClient.java deleted file mode 100644 index f5a8830c4a..0000000000 --- a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrnInqClient.java +++ /dev/null @@ -1,43 +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 org.apache.tuscany.sca.itest.trninq; - -import java.rmi.RemoteException; - -import org.ifxforum.xsd._1.DepAcctTrnInqRq_Type; -import org.ifxforum.xsd._1.DepAcctTrnInqRs_Type; - -/** - * @version $Rev$ $Date$ - */ -public class TrnInqClient implements TrninqInterface { - - //service interface - private TrninqInterface transactionInquiryService; - - // setting service interface - public void setTransactionInquiryService(TrninqInterface transactionInquiryService) { - this.transactionInquiryService = transactionInquiryService; - } - - public DepAcctTrnInqRs_Type DepAcctTrnInq(DepAcctTrnInqRq_Type req) throws RemoteException { - return transactionInquiryService.DepAcctTrnInq(req); - } - -} diff --git a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrnInqService.java b/branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrnInqService.java deleted file mode 100644 index 14da53cf98..0000000000 --- a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrnInqService.java +++ /dev/null @@ -1,112 +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 org.apache.tuscany.sca.itest.trninq; - -import java.rmi.RemoteException; -import java.util.List; - -import org.ifxforum.xsd._1.AdditionalStatus_Type; -import org.ifxforum.xsd._1.BankAcctTrnRec_Type; -import org.ifxforum.xsd._1.BillerId_Type; -import org.ifxforum.xsd._1.BillerPayee_Type; -import org.ifxforum.xsd._1.DepAcctTrnInqRq_Type; -import org.ifxforum.xsd._1.DepAcctTrnInqRs_Type; -import org.ifxforum.xsd._1.DepAcctTrnRec_Type; -import org.ifxforum.xsd._1._1Factory; - -/** - * @version $Rev$ $Date$ - */ -public class TrnInqService implements TrninqInterface { - - public DepAcctTrnInqRs_Type DepAcctTrnInq(DepAcctTrnInqRq_Type req) throws RemoteException { - - DepAcctTrnInqRs_Type response = _1Factory.INSTANCE.createDepAcctTrnInqRs_Type(); - - response.setStatus(_1Factory.INSTANCE.createStatus_Type()); - response.getStatus().setStatusCode(1); - response.getStatus().setStatusDesc("the description associated with the code 1"); - AdditionalStatus_Type addStatus = _1Factory.INSTANCE.createAdditionalStatus_Type(); - addStatus.setServerStatusCode("STATUS_OK"); - addStatus.setSeverity("SEVERITY_WARNING"); - response.getStatus().getAdditionalStatus().add(addStatus); - - response.setDepAcctId(_1Factory.INSTANCE.createDepAcctId_Type()); - response.getDepAcctId().setBankInfo(_1Factory.INSTANCE.createBankInfo_Type()); - response.getDepAcctId().getBankInfo().setBranchId("Concord_1"); - response.getDepAcctId().getBankInfo().setBankId("Dufferin hill"); - response.getDepAcctId().getBankInfo().setBankIdType("Concord branch"); - response.getDepAcctId().getBankInfo().setBranchName("A Happy branch"); - response.getDepAcctId().getBankInfo().setCity("Toronto"); - - response.getDepAcctId().getBankInfo().setCountry("Canada"); - response.getDepAcctId().getBankInfo().setName("Info for A Happy branch"); - response.getDepAcctId().getBankInfo().setPostalCode("L1LL1L"); - response.getDepAcctId().getBankInfo().setStateProv("ON"); - - List records = response.getDepAcctTrnRec(); - // Record1 - DepAcctTrnRec_Type trnRec1 = null; - BankAcctTrnRec_Type baTrnRec1 = null; - long maxRec = req.getTrnCountLimit().getCount(); - for (int i = 0; i < maxRec; i++) { - trnRec1 = _1Factory.INSTANCE.createDepAcctTrnRec_Type(); - baTrnRec1 = _1Factory.INSTANCE.createBankAcctTrnRec_Type(); - - trnRec1.setBankAcctTrnRec(baTrnRec1); - trnRec1.getBankAcctTrnRec().setCSPRefId("CSPRefId1"); - trnRec1.getBankAcctTrnRec().setPostedDt("1"); - trnRec1.getBankAcctTrnRec().setOrigDt("1"); - trnRec1.getBankAcctTrnRec().setBillRefInfo("aaaa"); - - trnRec1.getBankAcctTrnRec().setTrnType("1"); - - trnRec1.getBankAcctTrnRec().setCurAmt(_1Factory.INSTANCE.createCurrencyAmount()); - trnRec1.getBankAcctTrnRec().getCurAmt().setAmt(new java.math.BigDecimal(2000.35)); - trnRec1.getBankAcctTrnRec().getCurAmt().setCurCode("100"); - - trnRec1.setStmtRunningBal(_1Factory.INSTANCE.createCurrencyAmount()); - trnRec1.getStmtRunningBal().setAmt(new java.math.BigDecimal("1345.55")); - - trnRec1.getBankAcctTrnRec().setCustPayeeInfo(_1Factory.INSTANCE.createCustPayeeInfo_Type()); - trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setBillingAcct("000601832"); - trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setAcctPayAcctId("12"); - trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setName("John Doe"); - trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setNickname("Jody"); - - trnRec1.getBankAcctTrnRec().getCustPayeeInfo().setBillerPayee(_1Factory.INSTANCE.createBillerPayee_Type()); - BillerPayee_Type BillerP = trnRec1.getBankAcctTrnRec().getCustPayeeInfo().getBillerPayee(); - - BillerP.setBillerId(_1Factory.INSTANCE.createBillerId_Type()); - BillerId_Type BId = BillerP.getBillerId(); - - BId.setBillerNum("123"); - BId.setSPName("SomeName"); - - trnRec1.setAvailDt("sss"); - trnRec1.setPmtId("SomeID"); - trnRec1.setXferId("SomeOtherID"); - - records.add(trnRec1); - } - - return response; - } - -} diff --git a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrninqInterface.java b/branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrninqInterface.java deleted file mode 100644 index 3575d94f48..0000000000 --- a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/java/org/apache/tuscany/sca/itest/trninq/TrninqInterface.java +++ /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. - */ -package org.apache.tuscany.sca.itest.trninq; - -import org.ifxforum.xsd._1.DepAcctTrnInqRq_Type; -import org.ifxforum.xsd._1.DepAcctTrnInqRs_Type; -import org.osoa.sca.annotations.Remotable; - -/** - * @version $Rev$ $Date$ - */ -@Remotable -public interface TrninqInterface { - - /** - * Auto generated method signatures - * @param depAcctTrnInqRq - */ - public DepAcctTrnInqRs_Type DepAcctTrnInq(DepAcctTrnInqRq_Type depAcctTrnInqRq) throws java.rmi.RemoteException; - - // -} diff --git a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/META-INF/sca-contribution.xml b/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index ac66b6a425..0000000000 --- a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/trnInq.composite b/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/trnInq.composite deleted file mode 100644 index 97594216e1..0000000000 --- a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/trnInq.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/wsdl/IFX170_XSD.xsd b/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/wsdl/IFX170_XSD.xsd deleted file mode 100644 index b85b80abc4..0000000000 --- a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/wsdl/IFX170_XSD.xsd +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/wsdl/trninq.wsdl b/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/wsdl/trninq.wsdl deleted file mode 100644 index 842f7a9d4c..0000000000 --- a/branches/sca-java-20080910/itest/large-sdo-ws/src/main/resources/wsdl/trninq.wsdl +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-20080910/itest/large-sdo-ws/src/test/java/trninq/TrnInqServiceTestCase.java b/branches/sca-java-20080910/itest/large-sdo-ws/src/test/java/trninq/TrnInqServiceTestCase.java deleted file mode 100644 index 17eb575d50..0000000000 --- a/branches/sca-java-20080910/itest/large-sdo-ws/src/test/java/trninq/TrnInqServiceTestCase.java +++ /dev/null @@ -1,87 +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 trninq; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.StringWriter; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.apache.tuscany.sca.itest.trninq.TrninqInterface; -import org.ifxforum.xsd._1.DepAcctTrnInqRq_Type; -import org.ifxforum.xsd._1.DepAcctTrnInqRs_Type; -import org.ifxforum.xsd._1.TrnCountLimit_Type; -import org.ifxforum.xsd._1._1Factory; -import org.junit.Assert; - -/** - * This test is created to cover https://issues.apache.org/jira/browse/TUSCANY-1541 - * - * @version $Rev$ $Date$ - */ -public class TrnInqServiceTestCase extends TestCase { - - private static SCADomain scaDomain; - private TrninqInterface trnInq; - - @Override - protected void setUp() throws Exception { - if (scaDomain == null) { - scaDomain = SCADomain.newInstance("trnInq.composite"); - } - trnInq = scaDomain.getService(TrninqInterface.class, "TransactionInquiryClientComponent"); - } - - @Override - protected void tearDown() throws Exception { - scaDomain.close(); - } - - public void testDepAcctTrnInq() throws IOException { - DepAcctTrnInqRq_Type depAcctTrnInqRequest = _1Factory.INSTANCE.createDepAcctTrnInqRq_Type(); - TrnCountLimit_Type trnCountLimit = _1Factory.INSTANCE.createTrnCountLimit_Type(); - depAcctTrnInqRequest.setTrnCountLimit(trnCountLimit); - depAcctTrnInqRequest.getTrnCountLimit().setCount(2); - - try { - DepAcctTrnInqRs_Type depAcctTrnInqResponse = trnInq.DepAcctTrnInq(depAcctTrnInqRequest); - } catch (Exception e) { - StringWriter sw = new StringWriter(); - PrintWriter pw = new PrintWriter(sw); - e.printStackTrace(pw); - Assert.fail("Should pass with MaxRec 2! \n" + sw); - sw.close(); - pw.close(); - } - - depAcctTrnInqRequest.getTrnCountLimit().setCount(10); - try { - DepAcctTrnInqRs_Type depAcctTrnInqResponse = trnInq.DepAcctTrnInq(depAcctTrnInqRequest); - } catch (Exception e) { - StringWriter sw = new StringWriter(); - PrintWriter pw = new PrintWriter(sw); - e.printStackTrace(pw); - Assert.fail("Should pass with MaxRec 10! \n" + sw); - sw.close(); - pw.close(); - } - } -} -- cgit v1.2.3