You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by Vincent Massol <vm...@octo.com> on 2002/01/13 22:30:13 UTC
2 new features in CVS
Hi,
I have added today 2 new features in CVS :
1/ possibility to override default redirector in a per test case
fashion. For example, you can now write :
public void beginRedirectorOverride1(WebRequest theRequest)
{
theRequest.setRedirectorName("ServletRedirectorOverride");
}
public void testRedirectorOverride1()
{
assertEquals("value2 used for testing",
config.getInitParameter("param2"));
}
In order to support this I had to modify the format of
cactus.properties. The new one is :
# Web app Context under which our application to test runs
cactus.contextURL = http://localhost:@test.port@/test
# Default Servlet Redirector Name. Used by ServletTestCase test cases.
cactus.servletRedirectorName = ServletRedirector
# Default JSP Redirector Name. Used by JspTestCase test cases.
cactus.jspRedirectorName = JspRedirector
2/ BASIC authentication. I have committed the patch from Jason Robertson
/ Peter Wong. I have not yet committed the one for Form based
authentication but will soon.
Tell me if you like it :-)
Thanks
-Vincent
_______________________
Vincent Massol
Managing Director
OCTO Technology UK Ltd
www.octo.com
vmassol@octo.com
Tel: (020) 8996 9540
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: 2 new features in CVS
Posted by Vincent Massol <vm...@octo.com>.
Yes ... although :
- you could already do this before (just had to change the
cactus.properties file)
- the public SPI is not yet published :-)
-Vincent
> -----Original Message-----
> From: Nicholas Lesiecki [mailto:nick@eblox.com]
> Sent: 14 January 2002 16:04
> To: Cactus Developers List
> Subject: RE: 2 new features in CVS
>
> I really like the per-test redirector override. Now we caqn make out
own
> redirectors if we wish...
>
> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@octo.com]
> Sent: Sunday, January 13, 2002 2:30 PM
> To: 'Cactus Developers List'
> Subject: 2 new features in CVS
>
>
> Hi,
>
> I have added today 2 new features in CVS :
>
> 1/ possibility to override default redirector in a per test case
> fashion. For example, you can now write :
>
>
> public void beginRedirectorOverride1(WebRequest theRequest)
> {
> theRequest.setRedirectorName("ServletRedirectorOverride");
> }
>
> public void testRedirectorOverride1()
> {
> assertEquals("value2 used for testing",
> config.getInitParameter("param2"));
> }
>
> In order to support this I had to modify the format of
> cactus.properties. The new one is :
>
> # Web app Context under which our application to test runs
> cactus.contextURL = http://localhost:@test.port@/test
>
> # Default Servlet Redirector Name. Used by ServletTestCase test cases.
> cactus.servletRedirectorName = ServletRedirector
>
> # Default JSP Redirector Name. Used by JspTestCase test cases.
> cactus.jspRedirectorName = JspRedirector
>
> 2/ BASIC authentication. I have committed the patch from Jason
Robertson
> / Peter Wong. I have not yet committed the one for Form based
> authentication but will soon.
>
> Tell me if you like it :-)
>
> Thanks
> -Vincent
> _______________________
> Vincent Massol
> Managing Director
> OCTO Technology UK Ltd
> www.octo.com
> vmassol@octo.com
> Tel: (020) 8996 9540
>
>
>
>
> --
> To unsubscribe, e-mail: <mailto:cactus-dev-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-dev-
> help@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail: <mailto:cactus-dev-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-dev-
> help@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: 2 new features in CVS
Posted by Nicholas Lesiecki <ni...@eblox.com>.
I really like the per-test redirector override. Now we caqn make out own
redirectors if we wish...
-----Original Message-----
From: Vincent Massol [mailto:vmassol@octo.com]
Sent: Sunday, January 13, 2002 2:30 PM
To: 'Cactus Developers List'
Subject: 2 new features in CVS
Hi,
I have added today 2 new features in CVS :
1/ possibility to override default redirector in a per test case
fashion. For example, you can now write :
public void beginRedirectorOverride1(WebRequest theRequest)
{
theRequest.setRedirectorName("ServletRedirectorOverride");
}
public void testRedirectorOverride1()
{
assertEquals("value2 used for testing",
config.getInitParameter("param2"));
}
In order to support this I had to modify the format of
cactus.properties. The new one is :
# Web app Context under which our application to test runs
cactus.contextURL = http://localhost:@test.port@/test
# Default Servlet Redirector Name. Used by ServletTestCase test cases.
cactus.servletRedirectorName = ServletRedirector
# Default JSP Redirector Name. Used by JspTestCase test cases.
cactus.jspRedirectorName = JspRedirector
2/ BASIC authentication. I have committed the patch from Jason Robertson
/ Peter Wong. I have not yet committed the one for Form based
authentication but will soon.
Tell me if you like it :-)
Thanks
-Vincent
_______________________
Vincent Massol
Managing Director
OCTO Technology UK Ltd
www.octo.com
vmassol@octo.com
Tel: (020) 8996 9540
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>