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) {
94 public void setParentSuite(TestSuite suite) {
95 this.parentSuite = suite;
96 suite.setName(parentTestSuiteName);
103 public Object getParentSuite() {
111 public boolean isError() {
113 return getVerdict().equals(TestCase.ERROR);
119 public boolean isFailure() {
121 return getVerdict().equals(TestCase.FAIL);
128 public boolean isPass() {
130 return getVerdict().equals(TestCase.PASS);