|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.TestResult
edu.utep.cs.utjml.rat.RatTestResult
public class RatTestResult
A class for collecting the results of executing test cases. In addition to test failures and errors collected by the superclass, this class accumulates JML-specific test information such as total and meaningless test runs (e.g., test inputs causing precondition violations).
| Field Summary |
|---|
| Fields inherited from class junit.framework.TestResult |
|---|
fErrors, fFailures, fListeners, fRunTests |
| Constructor Summary | |
|---|---|
RatTestResult(RatTestRunner.JmlResultPrinter printer)
Constructs a new RatTestResult object. |
|
| Method Summary | |
|---|---|
void |
append(String msg)
Appends information about meaningless test cases. |
void |
incMeaninglessCount()
Increments the total number of JML test runs that are meaningless (e.g., precondition violations and null receivers). |
void |
incTotalCount()
Increments the total number of JML test runs. |
int |
meaninglessCount()
Returns the total number of JML meaningless test runs. |
String |
meaninglessTestCaseInfo()
Returns information about all of the meaningless test cases. |
void |
startJmlTest()
Prints a dot for a JML/JUnit test case. |
int |
totalCount()
Returns the total number of JML test runs. |
| Methods inherited from class junit.framework.TestResult |
|---|
addError, addFailure, addListener, endTest, errorCount, errors, failureCount, failures, removeListener, run, runCount, runProtected, shouldStop, startTest, stop, wasSuccessful |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RatTestResult(RatTestRunner.JmlResultPrinter printer)
| Method Detail |
|---|
public void incTotalCount()
ensures totalCount == \old(totalCount + 1);
public void incMeaninglessCount()
ensures meaninglessCount == \old(meaninglessCount + 1);
public void append(String msg)
public String meaninglessTestCaseInfo()
public int totalCount()
ensures \result == totalCount;
public int meaninglessCount()
ensures \result == meaninglessCount;
public void startJmlTest()
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||