org.jboss.axis.wsdl.toJava
Class JavaTestCaseWriter

java.lang.Object
  extended byorg.jboss.axis.wsdl.toJava.JavaWriter (src) 
      extended byorg.jboss.axis.wsdl.toJava.JavaClassWriter (src) 
          extended byorg.jboss.axis.wsdl.toJava.JavaTestCaseWriter
All Implemented Interfaces:
Generator (src)

public class JavaTestCaseWriter
extends JavaClassWriter (src)

This is Wsdl2java's TestCase writer. It writes the TestCase.java file.


Field Summary
 
Fields inherited from class org.jboss.axis.wsdl.toJava.JavaClassWriter (src)
className, namespaces, packageName
 
Fields inherited from class org.jboss.axis.wsdl.toJava.JavaWriter (src)
emitter, type
 
Constructor Summary
protected JavaTestCaseWriter(Emitter (src)  emitter, ServiceEntry (src)  sEntry, SymbolTable (src)  symbolTable)
          Constructor.
 
Method Summary
protected  java.lang.String getExtendsText()
          Returns "extends junit.framework.TestCase ".
 void writeBindingAssignment(java.io.PrintWriter pw, java.lang.String bindingType, java.lang.String portName)
           
protected  void writeFileBody(java.io.PrintWriter pw)
          Write the body of the TestCase file.
 
Methods inherited from class org.jboss.axis.wsdl.toJava.JavaClassWriter (src)
getClassModifiers, getClassName, getClassText, getFileName, getImplementsText, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage
 
Methods inherited from class org.jboss.axis.wsdl.toJava.JavaWriter (src)
closePrintWriter, generate, getPrintWriter, isFileGenerated, verboseMessage, writeComment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaTestCaseWriter

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

Method Detail

getExtendsText

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

Overrides:
getExtendsText in class JavaClassWriter (src)
Returns:
""

writeFileBody

protected void writeFileBody(java.io.PrintWriter pw)
                      throws java.io.IOException
Write the body of the TestCase file.

Specified by:
writeFileBody in class JavaWriter (src)
Throws:
java.io.IOException

writeBindingAssignment

public final void writeBindingAssignment(java.io.PrintWriter pw,
                                         java.lang.String bindingType,
                                         java.lang.String portName)
                                  throws java.io.IOException
Throws:
java.io.IOException