jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: my classes -regarding the cactus.properties file problem
Date Tue, 08 Jan 2002 16:47:10 GMT
Nitin,

Thank you for providing these files but they are not relevant for your
issue with cactus.properties. What you need to provide is your cactus
start script and where you put the cactus.properties file.

Thanks
-Vincent

> -----Original Message-----
> From: Nitin Pingle [mailto:nitin@kenati.com]
> Sent: 08 January 2002 05:57
> To: cactus-user@jakarta.apache.org
> Subject: my classes -regarding the cactus.properties file problem
> 
> hi
> regarding cactus.properties file
> this is my test class
> /**
>  * Title:        cactus trials
>  * Description:  Trials carried out on running the cactus test suite
>  * Copyright:    Copyright (c) 2001
>  * Company:      Kenati
>  * @author Nitin
>  * @version 1.0
>  */
> import org.apache.cactus.*;
> import junit.framework.*;
> public class ClientTestCase extends ServletTestCase
> {
> 
>   public ClientTestCase(String name)
>   {
>     super("testnitin");
> 
>   }
> 
>   public static void main(String[] theArgs)
>   {
>     junit.ui.TestRunner.main(new String[]
> {ClientTestCase.class.getName()});
>   }
> 
> 
>   public static Test suite()
>   {
>     return new TestSuite(ClientTestCase.class);
>   }
> 
>   public void testName()
>   {
>     ServerClass server=new ServerClass();
>     String str=server.getName();
>     assertEquals("NITIN",str);
>   }
> 
> }//class endsø
> 
> 
> i have a class in the server called ServerClass
> /**
>  * Title:        cactus trials
>  * Description:  Trials carried out on running the cactus test suite
>  * Copyright:    Copyright (c) 2001
>  * Company:      Kenati
>  * @author Nitin
>  * @version 1.0
>  */
> 
> public class ServerClass
> {
> 
>   public ServerClass()
>   {
>   }
> 
>   public String getName()
>   {
>     return "NITIN";
>   }
> }
> 
> and this is my cactus.properties file
> 
> # Configuration file for Cactus.
> 
> # Each project using Cactus need to have such a file put in the client
> side
> # CLASSPATH (Meaning the directory containgin this file should be in
the
> client
> # side CLASSPATH, not the file itself of course ... :) )
> 
> # Defines the URLs that will be used by Cactus to call it's
redirectors.
> # You need to specify in these URLs the webapp context that you use
for
> your
> # application. In the example below, the context is "test".
> 
> # Servlet Redirector. Used by ServletTestCase test cases.
> cactus.servletRedirectorURL =
> http://localhost:8080/test/ServletRedirector/
> 
> 
> # JSP Redirector. Used by JspTestCase test cases.
> cactus.jspRedirectorURL =
http://localhost:@test.port@/test/JspRedirector/
> 
> 
> test is my application context in the tomcat server wher my
application
> is running.
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>
> 




--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message