|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.plugins.python.xunit.TestCase
public class TestCase
Represents a unit test case. Has a couple of data items like name, status, time etc. associated. Reports testcase details in sonar-conform XML
| Constructor Summary | |
|---|---|
TestCase(String name,
int time,
String status,
String stack,
String msg)
Constructs a testcase instance out of following parameters |
|
| Method Summary | |
|---|---|
String |
getDetails()
Returns execution details as sonar-conform XML |
int |
getTime()
|
boolean |
isError()
Returns true if this testcase is an error, false otherwise |
boolean |
isFailure()
Returns true if this testcase is a failure, false otherwise |
boolean |
isSkipped()
Returns true if this testcase has been skipped, failure, false otherwise |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestCase(String name,
int time,
String status,
String stack,
String msg)
name - The name of this testcasetime - The execution time in millisecondsstatus - The execution status of the testcasestack - The stack trace occurred while executing of this testcase;
pass "" if the testcase passed/skipped.msg - The error message associated with this testcase of the execution
was erroneous; pass "" if not.| Method Detail |
|---|
public boolean isError()
public boolean isFailure()
public boolean isSkipped()
public int getTime()
public String getDetails()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||