org.sonar.plugins.python.xunit
Class TestCase

java.lang.Object
  extended by org.sonar.plugins.python.xunit.TestCase

public class TestCase
extends Object

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

TestCase

public TestCase(String name,
                int time,
                String status,
                String stack,
                String msg)
Constructs a testcase instance out of following parameters

Parameters:
name - The name of this testcase
time - The execution time in milliseconds
status - The execution status of the testcase
stack - 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

isError

public boolean isError()
Returns true if this testcase is an error, false otherwise


isFailure

public boolean isFailure()
Returns true if this testcase is a failure, false otherwise


isSkipped

public boolean isSkipped()
Returns true if this testcase has been skipped, failure, false otherwise


getTime

public int getTime()

getDetails

public String getDetails()
Returns execution details as sonar-conform XML



Copyright © 2011-2014 SonarSource and Waleri Enns. All Rights Reserved.