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

📄 terminallocationnotificationmanagerservicetestcase.java

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

package cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service;

public class TerminalLocationNotificationManagerServiceTestCase extends junit.framework.TestCase {
    public TerminalLocationNotificationManagerServiceTestCase(java.lang.String name) {
        super(name);
    }
    public void test1TerminalLocationNotificationManagerStartGeographicalNotification() throws Exception {
        cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service.TerminalLocationNotificationManagerBindingStub binding;
        try {
            binding = (cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service.TerminalLocationNotificationManagerBindingStub)
                          new cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service.TerminalLocationNotificationManagerServiceLocator().getTerminalLocationNotificationManager();
        }
        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
        try {
            binding.startGeographicalNotification(new cn.com.chinatelecom.www.schema.ctcc.common.v2_1.SimpleReference(), new org.apache.axis.types.URI[0], 0, 0, 0, 0, cn.com.chinatelecom.www.schema.ctcc.terminal_location.v2_1.EnteringLeavingCriteria.Entering, true, new cn.com.chinatelecom.www.schema.ctcc.common.v2_1.TimeMetric(), new cn.com.chinatelecom.www.schema.ctcc.common.v2_1.TimeMetric(), new java.lang.Integer(0));
        }
        catch (cn.com.chinatelecom.www.schema.ctcc.common.v2_1.PolicyException e1) {
            throw new junit.framework.AssertionFailedError("PolicyException Exception caught: " + e1);
        }
        catch (cn.com.chinatelecom.www.schema.ctcc.common.v2_1.ServiceException e2) {
            throw new junit.framework.AssertionFailedError("ServiceException Exception caught: " + e2);
        }
            // TBD - validate results
    }

    public void test2TerminalLocationNotificationManagerStartPeriodicNotification() throws Exception {
        cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service.TerminalLocationNotificationManagerBindingStub binding;
        try {
            binding = (cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service.TerminalLocationNotificationManagerBindingStub)
                          new cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service.TerminalLocationNotificationManagerServiceLocator().getTerminalLocationNotificationManager();
        }
        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
        try {
            binding.startPeriodicNotification(new cn.com.chinatelecom.www.schema.ctcc.common.v2_1.SimpleReference(), new org.apache.axis.types.URI[0], 0, new cn.com.chinatelecom.www.schema.ctcc.common.v2_1.TimeMetric(), new cn.com.chinatelecom.www.schema.ctcc.common.v2_1.TimeMetric());
        }
        catch (cn.com.chinatelecom.www.schema.ctcc.common.v2_1.PolicyException e1) {
            throw new junit.framework.AssertionFailedError("PolicyException Exception caught: " + e1);
        }
        catch (cn.com.chinatelecom.www.schema.ctcc.common.v2_1.ServiceException e2) {
            throw new junit.framework.AssertionFailedError("ServiceException Exception caught: " + e2);
        }
            // TBD - validate results
    }

    public void test3TerminalLocationNotificationManagerEndNotification() throws Exception {
        cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service.TerminalLocationNotificationManagerBindingStub binding;
        try {
            binding = (cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service.TerminalLocationNotificationManagerBindingStub)
                          new cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification_manager.v2_2.service.TerminalLocationNotificationManagerServiceLocator().getTerminalLocationNotificationManager();
        }
        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
        try {
            binding.endNotification(new java.lang.String());
        }
        catch (cn.com.chinatelecom.www.schema.ctcc.common.v2_1.PolicyException e1) {
            throw new junit.framework.AssertionFailedError("PolicyException Exception caught: " + e1);
        }
        catch (cn.com.chinatelecom.www.schema.ctcc.common.v2_1.ServiceException e2) {
            throw new junit.framework.AssertionFailedError("ServiceException Exception caught: " + e2);
        }
            // TBD - validate results
    }

}

⌨️ 快捷键说明

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