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;
31 public TestCase(String testName, String testID) {
33 this.testName = testName;
45 public String getTestID() {
52 public String getTestName() {
59 public String getVerdict() {
66 public void setTestID(String string) {
73 public void setTestName(String string) {
80 public void setVerdict(String string) {
92 public void setParentSuite(TestSuite suite) {
93 this.parentSuite = suite;
100 public Object getParentSuite() {
108 public boolean isError() {
110 return getVerdict().equals(TestCase.ERROR);
116 public boolean isFailure() {
118 return getVerdict().equals(TestCase.FAIL);
125 public boolean isPass() {
127 return getVerdict().equals(TestCase.PASS);