org.testng.junit
Class JUnitDirectoryConverter

java.lang.Object
  extended by org.testng.junit.JUnitDirectoryConverter

public class JUnitDirectoryConverter
extends Object

Tool class scanning and converting the JUnit sources found in a directory.

Author:
Cedric Beust, the_mindstorm

Constructor Summary
JUnitDirectoryConverter(File srcDir, File outDir, String release, boolean useAnnotation, String[] groups)
          Sole constructor.
 
Method Summary
 int convert()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitDirectoryConverter

public JUnitDirectoryConverter(File srcDir,
                               File outDir,
                               String release,
                               boolean useAnnotation,
                               String[] groups)
Sole constructor.

Parameters:
srcDir - path to directory containing JUnit tests
outDir - path to output directory for the generated test sources
useAnnotation - flag for JDK 1.5 annotation use. true if annotations should be used, false if javadoc-like annotations should be use
restore - flag if the output directory should reflect the package
Method Detail

convert

public int convert()


Copyright © 2010. All Rights Reserved.