FileDocCategorySizeDatePackage
WsdlToDotnetTest.javaAPI DocApache Ant 1.705475Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.taskdefs.optional

WsdlToDotnetTest

public class WsdlToDotnetTest extends org.apache.tools.ant.BuildFileTest
Tests the WsdlToDotnet task.
since
Ant 1.5

Fields Summary
private static final String
TASKDEFS_DIR
dir for taskdefs
private static final String
WSDL_FAILED
message from exec
Constructors Summary
public WsdlToDotnetTest(String name)
Constructor

param
name testname



             
       
        super(name);
    
Methods Summary
public voidsetUp()
The JUnit setup method

        configureProject(TASKDEFS_DIR + "WsdlToDotnet.xml");
    
public voidtearDown()
The teardown method for JUnit

        executeTarget("teardown");
    
public voidtestBothSrc()
A unit test for JUnit

        expectBuildExceptionContaining("testBothSrc",
                "expected failure",
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
    
public voidtestDestIsDir()
A unit test for JUnit

        expectBuildExceptionContaining("testDestIsDir",
                "expected failure",
                WsdlToDotnet.ERROR_DEST_FILE_IS_DIR);
    
public voidtestInvalidExtraOps()
A unit test for JUnit

        expectBuildExceptionContaining("testInvalidExtraOps",
                "expected failure",
                WSDL_FAILED);
    
public voidtestInvalidExtraOpsVB()
A unit test for JUnit

        expectBuildExceptionContaining("testInvalidExtraOpsVB",
                "expected failure",
                WSDL_FAILED);
    
public voidtestLocalWsdl()
A unit test for JUnit

        executeTarget("testLocalWsdl");
    
public voidtestLocalWsdlServer()
A unit test for JUnit

        executeTarget("testLocalWsdlServer");
    
public voidtestLocalWsdlServerVB()
A unit test for JUnit

        executeTarget("testLocalWsdlServerVB");
    
public voidtestLocalWsdlVB()
A unit test for JUnit

        executeTarget("testLocalWsdlVB");
    
public voidtestNoParams()
A unit test for JUnit

        expectBuildExceptionContaining("testNoParams",
                "expected failure",
                WsdlToDotnet.ERROR_NO_DEST_FILE);
    
public voidtestNoSrc()
A unit test for JUnit

        expectBuildExceptionContaining("testNoSrc",
                "expected failure",
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
    
public voidtestParseableErrorsIgnoredWhenFalse()
as if parseable errors were not ignored, mono and WSE1.0 would crash and burn. So here we verify the property exists, and that it is not passed to the app when false

        executeTarget("testLocalWsdl");
    
public voidtestSchemaFileMustExist()
A unit test for JUnit

        expectBuildExceptionContaining("testSchemaFileMustExist",
                "expected failure",
                WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);
    
public voidtestSchemaFileMustHaveOneOptionOnly()
A unit test for JUnit

        expectBuildExceptionContaining("testSchemaFileMustHaveOneOptionOnly",
                "expected failure",
                WsdlToDotnet.Schema.ERROR_BOTH_DECLARED);
    
public voidtestSchemaMustBeSet()
A unit test for JUnit

        expectBuildExceptionContaining("testSchemaMustBeSet",
                "expected failure",
                WsdlToDotnet.Schema.ERROR_NONE_DECLARED);
    
public voidtestSrcIsDir()
A unit test for JUnit

        expectBuildExceptionContaining("testSrcIsDir",
                "expected failure",
                WsdlToDotnet.Schema.ERROR_FILE_IS_DIR);
    
public voidtestSrcIsMissing()
A unit test for JUnit

        expectBuildExceptionContaining("testSrcIsMissing",
                "expected failure",
                WsdlToDotnet.Schema.ERROR_FILE_NOT_FOUND);