⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cardmanagerservicetestcase.java

📁 精通Jboss——Ejb和Web Services开发精解的随书源代码
💻 JAVA
字号:
/**
 * CardManagerServiceTestCase.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package com.liuyang.axis.webservices;

public class CardManagerServiceTestCase extends junit.framework.TestCase {
    public CardManagerServiceTestCase(java.lang.String name) {
        super(name);
    }
    public void test1CardManagerGetCard() throws Exception {
        com.liuyang.axis.webservices.CardManagerSoapBindingStub binding;
        try {
            binding = (com.liuyang.axis.webservices.CardManagerSoapBindingStub)
                          new com.liuyang.axis.webservices.CardManagerServiceLocator().getCardManager();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        com.liuyang.axis.webservices.Card value = null;
        value = binding.getCard(new java.lang.String());
        // TBD - validate results
    }

    public void test2CardManagerStoreCard() throws Exception {
        com.liuyang.axis.webservices.CardManagerSoapBindingStub binding;
        try {
            binding = (com.liuyang.axis.webservices.CardManagerSoapBindingStub)
                          new com.liuyang.axis.webservices.CardManagerServiceLocator().getCardManager();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertNotNull("binding is null", binding);

        // Time out after a minute
        binding.setTimeout(60000);

        // Test operation
        binding.storeCard(new com.liuyang.axis.webservices.Card());
        // TBD - validate results
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -