junit.extensions.abbot
Class ScriptTestCollector

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

public class ScriptTestCollector
extends LoadingTestCollector

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


Field Summary
 
Fields inherited from class junit.runner.LoadingTestCollector
 
Fields inherited from class junit.runner.ClassPathTestCollector
 
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 junit.runner.LoadingTestCollector
 
Methods inherited from class junit.runner.ClassPathTestCollector
 
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.


collectFilesInPath

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


scanArchive

protected Map scanArchive(String name)

isTestClass

protected boolean isTestClass(String classFileName)

classNameFromFile

protected String classNameFromFile(String classFileName)


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

SourceForge