org.apache.axis.wsdl.toJava

Class JavaTestCaseWriter

public class JavaTestCaseWriter extends JavaClassWriter

This is Wsdl2java's TestCase writer. It writes the TestCase.java file.
Constructor Summary
protected JavaTestCaseWriter(Emitter emitter, ServiceEntry sEntry, SymbolTable symbolTable)
Constructor.
Method Summary
protected StringgetExtendsText()
Returns "extends junit.framework.TestCase ".
voidwriteBindingAssignment(PrintWriter pw, String bindingType, String portName)
Method writeBindingAssignment
protected voidwriteFileBody(PrintWriter pw)
Write the body of the TestCase file.
protected voidwriteServiceTestCode(PrintWriter pw, String portName, PortType portType, BindingEntry bEntry)
Method writeServiceTestCode

Constructor Detail

JavaTestCaseWriter

protected JavaTestCaseWriter(Emitter emitter, ServiceEntry sEntry, SymbolTable symbolTable)
Constructor.

Parameters: emitter sEntry symbolTable

Method Detail

getExtendsText

protected String getExtendsText()
Returns "extends junit.framework.TestCase ".

Returns:

writeBindingAssignment

public final void writeBindingAssignment(PrintWriter pw, String bindingType, String portName)
Method writeBindingAssignment

Parameters: pw bindingType portName

writeFileBody

protected void writeFileBody(PrintWriter pw)
Write the body of the TestCase file.

Parameters: pw

Throws: IOException

writeServiceTestCode

protected final void writeServiceTestCode(PrintWriter pw, String portName, PortType portType, BindingEntry bEntry)
Method writeServiceTestCode

Parameters: pw portName portType bEntry

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.