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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to