wsuploadfileservicetestcase.java

来自「OA典型例子」· Java 代码 · 共 57 行

JAVA
57
字号
/**
 * WSUploadFileServiceTestCase.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package com.jspsmart.upload.generated;

public class WSUploadFileServiceTestCase extends junit.framework.TestCase {
    public WSUploadFileServiceTestCase(java.lang.String name) {
        super(name);
    }
    public void test1WSUploadFileGetUnitList() {
        com.jspsmart.upload.generated.WSUploadFile binding;
        try {
            binding = new com.jspsmart.upload.generated.WSUploadFileServiceLocator().getWSUploadFile();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            java.lang.String value = null;
            value = binding.getUnitList(new java.lang.String());
        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
        }
    }

    public void test2WSUploadFileUploadFile() {
        com.jspsmart.upload.generated.WSUploadFile binding;
        try {
            binding = new com.jspsmart.upload.generated.WSUploadFileServiceLocator().getWSUploadFile();
        }
        catch (javax.xml.rpc.ServiceException jre) {
            if(jre.getLinkedCause()!=null)
                jre.getLinkedCause().printStackTrace();
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            java.lang.String value = null;
            value = binding.uploadFile(new java.lang.String());
        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
        }
    }

}

⌨️ 快捷键说明

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