commented out code responsible for exceptions. now showing correct suite names and...
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / testpool / TestCase.java
index 7812b67..5d5891a 100644 (file)
@@ -21,6 +21,11 @@ public class TestCase {
 
 
        private TestSuite parentSuite;
+       private String testName;
+       private String testID;
+       private String verdict;
+       private String parentTestSuiteName;
+       
        
        
 
@@ -28,16 +33,14 @@ public class TestCase {
         * @param testName
         * @param testID
         */
-       public TestCase(String testName, String testID) {
+       public TestCase(String testID, String testName, String parentTestSuiteName) {
                
                this.testName = testName;
                this.testID = testID;
+               this.parentTestSuiteName = parentTestSuiteName;
        }
 
 
-       String testName;
-       String testID;
-       String verdict;
 
        /**
         * @return
@@ -65,8 +68,11 @@ public class TestCase {
         */
        public void setTestID(String string) {
                testID = string;
+               
        }
 
+
+
        /**
         * @param string
         */
@@ -80,10 +86,6 @@ public class TestCase {
        public void setVerdict(String string) {
                verdict = string;
                
-               
-               
-               
-                       
        }
 
        /**
@@ -91,6 +93,7 @@ public class TestCase {
         */
        public void setParentSuite(TestSuite suite) {
                this.parentSuite = suite;
+               suite.setName(parentTestSuiteName);
                
        }