From portal-commits at lists.jboss.org Wed Apr 18 05:29:35 2007 Content-Type: multipart/mixed; boundary="===============6691605201324645205==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r7000 - trunk/portlet/src/main/org/jboss/portal/test/portlet/info. Date: Wed, 18 Apr 2007 05:29:34 -0400 Message-ID: --===============6691605201324645205== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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/AbstractInfoTe= st.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/Abstrac= tInfoTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/portlet/src/main/org/jboss/portal/test/portlet/info/AbstractInfoT= est.java 2007-04-18 09:19:19 UTC (rev 6999) +++ trunk/portlet/src/main/org/jboss/portal/test/portlet/info/AbstractInfoT= est.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 Julien Viet * @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 conte= xt. */ + private HttpTestContext testContext; + public AbstractInfoTest(String testCaseId) { if (testCaseId =3D=3D null) @@ -65,6 +70,16 @@ this.testInfo =3D new TestInfo(testCaseId); } = + public void pushContext(String testId, HttpTestContext testContext) + { + this.testContext =3D testContext; + } + + public HttpTestContext popContext(String testId) + { + return testContext; + } + public PortletApplicationRegistry getRegistry() { return registry; --===============6691605201324645205==--