public class TestCase extends Object
| Constructor and Description |
|---|
TestCase(String name,
int time,
String status,
String stack,
String msg)
Constructs a testcase instance out of following parameters
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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.public boolean isError()
public boolean isFailure()
public boolean isSkipped()
public int getTime()
public String getDetails()
Copyright © 2011–2015 SonarSource and Waleri Enns. All rights reserved.