pl.infovide.wmunit
Class PrepereTest

java.lang.Object
  extended by pl.infovide.wmunit.PrepereTest

public class PrepereTest
extends java.lang.Object

Author:
Jan Topiļæ½ski

Constructor Summary
PrepereTest()
           
 
Method Summary
protected  boolean isMethodNameUsed(java.io.File javaFile, java.lang.String methodName)
           
static void main(java.lang.String[] args)
           
 void makeInputXml(java.io.Writer writer, org.dom4j.Document xmlDocument)
           
 void prepareTests(java.lang.String packageName, java.lang.String serviceName, java.util.ArrayList testPairs, java.lang.String actionOnInputXmlExistence)
           
 void prepereClass(java.lang.String filePath, java.lang.String packageName, java.lang.String serviceName)
           
 void prepereMethod(java.io.File javaFile, java.lang.String packageName, java.lang.String serviceName, pl.infovide.wmunit.TestPair tp)
           
 void writeInputXml(java.io.Writer writer, java.io.File inputDocFile, java.lang.String pathForXml, java.lang.String xmlFileName, java.lang.String packageName)
           
 void writeTryCatchPart(java.io.Writer writer, java.lang.String packageName, java.lang.String serviceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrepereTest

public PrepereTest()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.FileNotFoundException,
                        org.dom4j.DocumentException
Throws:
java.io.FileNotFoundException
org.dom4j.DocumentException

prepareTests

public void prepareTests(java.lang.String packageName,
                         java.lang.String serviceName,
                         java.util.ArrayList testPairs,
                         java.lang.String actionOnInputXmlExistence)
                  throws java.io.FileNotFoundException,
                         pl.infovide.wmunit.IncorrectConfigurationValueException,
                         pl.infovide.wmunit.InputXMLAlreadyExistsException,
                         pl.infovide.wmunit.DuplicatedTestMethodException,
                         pl.infovide.wmunit.InGeneretingException
Throws:
java.io.FileNotFoundException
pl.infovide.wmunit.IncorrectConfigurationValueException
pl.infovide.wmunit.InputXMLAlreadyExistsException
pl.infovide.wmunit.DuplicatedTestMethodException
pl.infovide.wmunit.InGeneretingException

prepereClass

public void prepereClass(java.lang.String filePath,
                         java.lang.String packageName,
                         java.lang.String serviceName)

prepereMethod

public void prepereMethod(java.io.File javaFile,
                          java.lang.String packageName,
                          java.lang.String serviceName,
                          pl.infovide.wmunit.TestPair tp)
                   throws org.dom4j.DocumentException,
                          pl.infovide.wmunit.InputXMLAlreadyExistsException,
                          pl.infovide.wmunit.DuplicatedTestMethodException,
                          pl.infovide.wmunit.InGeneretingException
Throws:
org.dom4j.DocumentException
pl.infovide.wmunit.InputXMLAlreadyExistsException
pl.infovide.wmunit.DuplicatedTestMethodException
pl.infovide.wmunit.InGeneretingException

makeInputXml

public void makeInputXml(java.io.Writer writer,
                         org.dom4j.Document xmlDocument)
                  throws java.io.IOException
Throws:
java.io.IOException

writeInputXml

public void writeInputXml(java.io.Writer writer,
                          java.io.File inputDocFile,
                          java.lang.String pathForXml,
                          java.lang.String xmlFileName,
                          java.lang.String packageName)
                   throws java.io.IOException,
                          pl.infovide.wmunit.InputXMLAlreadyExistsException
Throws:
java.io.IOException
pl.infovide.wmunit.InputXMLAlreadyExistsException

writeTryCatchPart

public void writeTryCatchPart(java.io.Writer writer,
                              java.lang.String packageName,
                              java.lang.String serviceName)
                       throws java.io.IOException
Throws:
java.io.IOException

isMethodNameUsed

protected boolean isMethodNameUsed(java.io.File javaFile,
                                   java.lang.String methodName)
                            throws java.io.FileNotFoundException,
                                   java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException


Copyright © 2007 Infovide-Matrix S.A.. All Rights Reserved.