|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmunit.framework.cldc11.Result
public final class Result
The Result class has the responsability of store the tests results. It has a collection of static methods and variables used by the framework the overall result of each test execution. Mos of the stored information is used in the Screen class, for interface purposes.
Constructor Summary | |
---|---|
Result()
The default constructor. |
Method Summary | |
---|---|
static void |
addError()
Increases the amount of error tests by one. |
static void |
addFail()
Increases the amount of failed tests by one. |
static void |
addPass()
Increases the amount of passed tests by one. |
static void |
addRun()
Increases the amount of runned tests by one. |
static void |
addTotalOfTests(int totalOfTests)
Increases the amount of tests. |
static int |
getErrorTests()
A getter method that returns the total of error tests. |
static int |
getFailedTests()
A getter method that returns the total of failed tests. |
static int |
getPassedTests()
A getter method that returns the total of passed tests. |
static int |
getRunnedTests()
A getter method that returns the runned tests. |
static long |
getTime()
A getter method that returns the elapsed time between the start time and the last execution of a test. |
static int |
getTotalOfTests()
A getter method that returns the total of tests. |
static void |
initialize()
Initialize the test execution. |
static boolean |
isOK()
This method notify the status of all executed tests. |
static void |
setElapsedTime()
Updates the elapsed time since the beginning of test execution. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Result()
Method Detail |
---|
public static boolean isOK()
public static int getRunnedTests()
public static int getTotalOfTests()
public static int getPassedTests()
public static int getFailedTests()
public static int getErrorTests()
public static long getTime()
public static void addError()
public static void addTotalOfTests(int totalOfTests)
totalOfTests
- the amount to increase the total of tests.public static void addFail()
public static void addRun()
public static void addPass()
public static void setElapsedTime()
public static void initialize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |