2  * Created on Jul 31, 2004
 
   4  * To change the template for this generated file go to
 
   5  * Window>Preferences>Java>Code Generation>Code and Comments
 
   7 package net.sourceforge.phpeclipse.phpunit.testpool;
 
  11  * @author Ali Echihabi
 
  13  * To change the template for this generated type comment go to
 
  14  * Window>Preferences>Java>Code Generation>Code and Comments
 
  16 public class TestCase {
 
  18         public static final String PASS = "PASS";
 
  19         public static final String FAIL = "FAIL";
 
  20         public static final String ERROR = "ERROR";
 
  23         private TestSuite parentSuite;
 
  24         private String testName;
 
  25         private String testID;
 
  26         private String verdict;
 
  27         private String parentTestSuiteName;
 
  36         public TestCase(String testID, String testName, String parentTestSuiteName) {
 
  38                 this.testName = testName;
 
  40                 this.parentTestSuiteName = parentTestSuiteName;
 
  48         public String getTestID() {
 
  55         public String getTestName() {
 
  62         public String getVerdict() {
 
  69         public void setTestID(String string) {
 
  79         public void setTestName(String string) {
 
  86         public void setVerdict(String string) {
 
  90                         parentSuite.setHasFailure();
 
  92                         parentSuite.setHasError();
 
  99         public void setParentSuite(TestSuite suite) {
 
 100                 this.parentSuite = suite;
 
 101                 suite.setName(parentTestSuiteName);
 
 108         public Object getParentSuite() {
 
 116         public boolean isError() {
 
 118                 return getVerdict().equals(TestCase.ERROR);
 
 124         public boolean isFailure() {
 
 126                 return getVerdict().equals(TestCase.FAIL);
 
 133         public boolean isPass() {
 
 135                 return getVerdict().equals(TestCase.PASS);