TestPool: will be used as the model for a tree content provider.
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / TestPool.java
diff --git a/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/TestPool.java b/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/TestPool.java
new file mode 100644 (file)
index 0000000..a4ba019
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * 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;
+
+import java.util.HashMap;
+
+/**
+ * @author Ali Echihabi
+ *
+ * To change the template for this generated type comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+public class TestPool {
+
+       private HashMap tests;
+
+       public TestPool() {
+               
+               tests = new HashMap();
+       }
+
+       public void addTest(TestCase test) {
+               
+               tests.put(test.getTestID(), test);
+               
+       }
+       
+       public TestCase getTest(String testID) {
+                               
+               return (TestCase) tests.get(testID);
+       }
+
+}