sofya.apps.dejavu
Class TestMapper

java.lang.Object
  extended by sofya.apps.dejavu.TestMapper
Direct Known Subclasses:
BlockTestMapper

public abstract class TestMapper
extends java.lang.Object

A concrete implementation of this class is responsible for performing the mapping of dangerous edges to tests in the original test suite.

Version:
09/23/2004
Author:
CS562 2003 dev team., Alex Kinneer

Constructor Summary
TestMapper()
           
 
Method Summary
abstract  int getTotalNumberOfTests()
          Returns the number of tests in the test history.
abstract  sofya.apps.dejavu.SelectionData selectTests(java.lang.String methodName, Edge[] dangerousEdges)
          Selects tests based on the dangerous edge list for a given method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMapper

public TestMapper()
Method Detail

selectTests

public abstract sofya.apps.dejavu.SelectionData selectTests(java.lang.String methodName,
                                                            Edge[] dangerousEdges)
                                                     throws MethodNotFoundException
Selects tests based on the dangerous edge list for a given method.

Parameters:
methodName - Name of the method for which test selection is occurring.
dangerousEdges - List of dangerous edges found in the method, to be mapped to corresponding tests.
Returns:
A selection data object containing information about the selected tests, most importantly the list of selected test numbers.
Throws:
MethodNotFoundException - If the method test descriptor references a method that cannot be found in the test history file.

getTotalNumberOfTests

public abstract int getTotalNumberOfTests()
Returns the number of tests in the test history.

Returns:
The total number of tests.