junit.extensions.abbot
Class ScriptTestCollector

java.lang.Object
  extended by junit.runner.ClassPathTestCollector
      extended by junit.runner.LoadingTestCollector
          extended by junit.extensions.abbot.ScriptTestCollector
All Implemented Interfaces:
junit.runner.TestCollector

public class ScriptTestCollector
extends junit.runner.LoadingTestCollector

Collects all available classes derived from ScriptTestCase in the current classpath.


Constructor Summary
ScriptTestCollector()
           
ScriptTestCollector(ClassLoader loader)
           
 
Method Summary
protected  String classNameFromFile(String classFileName)
           
 Hashtable collectFilesInPath(String classPath)
          Collect files in zip archives as well as raw class files.
 Enumeration collectTests()
          Override to use something other than java.class.path.
protected  boolean isTestClass(String classFileName)
           
protected  Map scanArchive(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptTestCollector

public ScriptTestCollector()

ScriptTestCollector

public ScriptTestCollector(ClassLoader loader)
Method Detail

collectTests

public Enumeration collectTests()
Override to use something other than java.class.path.

Specified by:
collectTests in interface junit.runner.TestCollector
Overrides:
collectTests in class junit.runner.ClassPathTestCollector

collectFilesInPath

public Hashtable collectFilesInPath(String classPath)
Collect files in zip archives as well as raw class files.

Overrides:
collectFilesInPath in class junit.runner.ClassPathTestCollector

scanArchive

protected Map scanArchive(String name)

isTestClass

protected boolean isTestClass(String classFileName)
Overrides:
isTestClass in class junit.runner.LoadingTestCollector

classNameFromFile

protected String classNameFromFile(String classFileName)
Overrides:
classNameFromFile in class junit.runner.ClassPathTestCollector


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge