terminallocationnotificationservicetestcase.java

来自「电信ISAG的服务连接和服务」· Java 代码 · 共 78 行

JAVA
78
字号
/**
 * 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 + =
减小字号Ctrl + -
显示快捷键?