Author: julien(a)jboss.com
Date: 2007-04-18 05:29:34 -0400 (Wed, 18 Apr 2007)
New Revision: 7000
Modified:
trunk/portlet/src/main/org/jboss/portal/test/portlet/info/AbstractInfoTest.java
Log:
temporarily make the AbstractInfoTest an HttpTestCase in order to avoid the class cast
exception
Modified: trunk/portlet/src/main/org/jboss/portal/test/portlet/info/AbstractInfoTest.java
===================================================================
---
trunk/portlet/src/main/org/jboss/portal/test/portlet/info/AbstractInfoTest.java 2007-04-18
09:19:19 UTC (rev 6999)
+++
trunk/portlet/src/main/org/jboss/portal/test/portlet/info/AbstractInfoTest.java 2007-04-18
09:29:34 UTC (rev 7000)
@@ -33,12 +33,14 @@
import org.jboss.portal.common.test.driver.command.StartTestCommand;
import org.jboss.portal.common.test.info.TestItemInfo;
import org.jboss.portal.common.test.info.TestInfo;
+import org.jboss.portal.test.framework.driver.http.HttpTestDriver;
+import org.jboss.portal.test.framework.driver.http.HttpTestContext;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision: 1.1 $
*/
-public abstract class AbstractInfoTest implements TestDriver
+public abstract class AbstractInfoTest implements HttpTestDriver
{
/** The test id. */
@@ -53,6 +55,9 @@
/** The controller. */
protected TestDriverContainer testDriverContainer;
+ /** Not really used for now, we need the concept of non http test context. */
+ private HttpTestContext testContext;
+
public AbstractInfoTest(String testCaseId)
{
if (testCaseId == null)
@@ -65,6 +70,16 @@
this.testInfo = new TestInfo(testCaseId);
}
+ public void pushContext(String testId, HttpTestContext testContext)
+ {
+ this.testContext = testContext;
+ }
+
+ public HttpTestContext popContext(String testId)
+ {
+ return testContext;
+ }
+
public PortletApplicationRegistry getRegistry()
{
return registry;
Show replies by date