org.apache.tools.ant.taskdefs.optional.junit

Class FailureRecorder.TestInfos

public class FailureRecorder.TestInfos extends Object implements Comparable

TestInfos holds information about a given test for later use.
Constructor Summary
TestInfos(Test test)
This constructor extracts the needed information from the given test.
Method Summary
intcompareTo(Object other)
The SortedMap needs comparable elements.
StringtoString()
This String-Representation can directly be used for instantiation of the JUnit testcase.

Constructor Detail

TestInfos

public TestInfos(Test test)
This constructor extracts the needed information from the given test.

Parameters: test Test to analyze

Method Detail

compareTo

public int compareTo(Object other)
The SortedMap needs comparable elements.

Parameters: other the object to compare to.

Returns: the result of the comparison.

See Also: java.lang.Comparable#compareTo SortedSet#comparator()

toString

public String toString()
This String-Representation can directly be used for instantiation of the JUnit testcase.

Returns: the string representation.

See Also: java.lang.Object#toString() createSuiteMethod