net.sourceforge.groboutils.autodoc.v1.testserver
Class TestCorrelate

java.lang.Object
  extended bynet.sourceforge.groboutils.autodoc.v1.testserver.TestCorrelate
Direct Known Subclasses:
AutoDocITImpl, JUnitTestListener

public abstract class TestCorrelate
extends java.lang.Object

Helper method to aid in the use of Monitors and TestData.

Since:
March 17, 2002
Version:
$Date: 2003/02/10 22:52:13 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Constructor Summary
TestCorrelate(java.lang.Class owner, MonitorFinder finder)
           
 
Method Summary
protected  TestInfo createTestInfo(java.lang.String methodName)
          Use the given method name and the known owner class to create a new TestInfo instance.
protected  TestInfo createTestInfoFromStack()
          Uses the owner class and the findClassMethodFromStack result to crate a TestInfo instance.
protected  java.lang.String findClassMethodFromStack()
          Helper method to discover the last method from the owning class in the current stack.
protected  MonitorFinder getFinder()
           
protected  java.lang.Class getOwner()
           
protected  java.lang.String getOwnerName()
           
protected  TestData getTestData(TestInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCorrelate

public TestCorrelate(java.lang.Class owner,
                     MonitorFinder finder)
Method Detail

findClassMethodFromStack

protected java.lang.String findClassMethodFromStack()
Helper method to discover the last method from the owning class in the current stack. If the method is not in the stack, then null is returned. This can be very slow.


createTestInfoFromStack

protected TestInfo createTestInfoFromStack()
Uses the owner class and the findClassMethodFromStack result to crate a TestInfo instance.


createTestInfo

protected TestInfo createTestInfo(java.lang.String methodName)
Use the given method name and the known owner class to create a new TestInfo instance.


getFinder

protected MonitorFinder getFinder()

getTestData

protected TestData getTestData(TestInfo info)
Parameters:
info - the test info to find its corresponding TestData.
Returns:
the TestData associated with the info, or null if it was not found.

getOwner

protected java.lang.Class getOwner()

getOwnerName

protected java.lang.String getOwnerName()


Copyright © 2001-2003 by The GroboUtils Project