First commit in a looooooong time. I had connectivity problems.
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / testpool / TestCase.java
diff --git a/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/testpool/TestCase.java b/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/testpool/TestCase.java
new file mode 100644 (file)
index 0000000..7812b67
--- /dev/null
@@ -0,0 +1,131 @@
+/*
+ * Created on Jul 31, 2004
+ *
+ * To change the template for this generated file go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+package net.sourceforge.phpeclipse.phpunit.testpool;
+
+
+/**
+ * @author Ali Echihabi
+ *
+ * To change the template for this generated type comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+public class TestCase {
+
+       public static final String PASS = "PASS";
+       public static final String FAIL = "FAIL";
+       public static final String ERROR = "ERROR";
+
+
+       private TestSuite parentSuite;
+       
+       
+
+       /**
+        * @param testName
+        * @param testID
+        */
+       public TestCase(String testName, String testID) {
+               
+               this.testName = testName;
+               this.testID = testID;
+       }
+
+
+       String testName;
+       String testID;
+       String verdict;
+
+       /**
+        * @return
+        */
+       public String getTestID() {
+               return testID;
+       }
+
+       /**
+        * @return
+        */
+       public String getTestName() {
+               return testName;
+       }
+
+       /**
+        * @return
+        */
+       public String getVerdict() {
+               return verdict;
+       }
+
+       /**
+        * @param string
+        */
+       public void setTestID(String string) {
+               testID = string;
+       }
+
+       /**
+        * @param string
+        */
+       public void setTestName(String string) {
+               testName = string;
+       }
+
+       /**
+        * @param string
+        */
+       public void setVerdict(String string) {
+               verdict = string;
+               
+               
+               
+               
+                       
+       }
+
+       /**
+        * @param suite
+        */
+       public void setParentSuite(TestSuite suite) {
+               this.parentSuite = suite;
+               
+       }
+
+       /**
+        * @return
+        */
+       public Object getParentSuite() {
+               
+               return parentSuite;
+       }
+
+       /**
+        * @return
+        */
+       public boolean isError() {
+               
+               return getVerdict().equals(TestCase.ERROR);
+       }
+
+       /**
+        * @return
+        */
+       public boolean isFailure() {
+               
+               return getVerdict().equals(TestCase.FAIL);
+               
+       }
+
+       /**
+        * @return
+        */
+       public boolean isPass() {
+               
+               return getVerdict().equals(TestCase.PASS);
+
+       }
+
+}