org.apache.jackrabbit.tck
Class TestFinder

java.lang.Object
  extended byorg.apache.jackrabbit.tck.TestFinder

public class TestFinder
extends java.lang.Object

The TestFinder class is responsible to find all TestCases which are in a jar. The information which jar has to be searched is passed in the constructor.


Constructor Summary
TestFinder()
          The path where the jar containing the test classes and its sources is residing is passed here.
 
Method Summary
 void find(java.io.InputStream in, java.lang.String exclude)
          This method searches all tests.
 java.util.Map getSuites()
          Returns all built test suites.
 java.util.Map getTests()
          Returns all tests categorized by it's keyword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestFinder

public TestFinder()
The path where the jar containing the test classes and its sources is residing is passed here.

Method Detail

find

public void find(java.io.InputStream in,
                 java.lang.String exclude)
          throws java.io.IOException,
                 java.lang.ClassNotFoundException
This method searches all tests.

Parameters:
exclude - file(class) name (e.g. allTests) of tests which should be excluded.
in - InputStream of jar file containing the test class sources
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getTests

public java.util.Map getTests()
Returns all tests categorized by it's keyword

Returns:
all tests

getSuites

public java.util.Map getSuites()
Returns all built test suites. the suites are categorized:
  • - level1
  • - level 2
  • - optional...

    Returns:
    test suites


  • Copyright © -2005 . All Rights Reserved.