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

📄 terminallocationnotificationservicetestcase.java

📁 电信ISAG的服务连接和服务
💻 JAVA
字号:
/**
 * TerminalLocationNotificationServiceTestCase.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service;

public class TerminalLocationNotificationServiceTestCase extends junit.framework.TestCase {
    public TerminalLocationNotificationServiceTestCase(java.lang.String name) {
        super(name);
    }
    public void test1TerminalLocationNotificationLocationNotification() throws Exception {
        cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service.TerminalLocationNotificationBindingStub binding;
        try {
            binding = (cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service.TerminalLocationNotificationBindingStub)
                          new cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service.TerminalLocationNotificationServiceLocator().getTerminalLocationNotification();
        }
        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.locationNotification(new java.lang.String(), new cn.com.chinatelecom.www.schema.ctcc.terminal_location.v2_1.LocationInfo[0], cn.com.chinatelecom.www.schema.ctcc.terminal_location.v2_1.EnteringLeavingCriteria.Entering);
        // TBD - validate results
    }

    public void test2TerminalLocationNotificationLocationError() throws Exception {
        cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service.TerminalLocationNotificationBindingStub binding;
        try {
            binding = (cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service.TerminalLocationNotificationBindingStub)
                          new cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service.TerminalLocationNotificationServiceLocator().getTerminalLocationNotification();
        }
        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.locationError(new java.lang.String(), new org.apache.axis.types.URI("urn:testing"), new cn.com.chinatelecom.www.schema.ctcc.common.v2_1.ServiceError());
        // TBD - validate results
    }

    public void test3TerminalLocationNotificationLocationEnd() throws Exception {
        cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service.TerminalLocationNotificationBindingStub binding;
        try {
            binding = (cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service.TerminalLocationNotificationBindingStub)
                          new cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service.TerminalLocationNotificationServiceLocator().getTerminalLocationNotification();
        }
        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.locationEnd(new java.lang.String());
        // TBD - validate results
    }

}

⌨️ 快捷键说明

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