hi,
i have facing a problem when try to run a
junit in Linux machine.
the error message what i am getting is
Jun 25, 2008 1:58:31 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out
Jun 25, 2008 1:58:31 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
this is happening when trying to access testGetOnlineEventsList method.. i am attaching the source file below.
package com.cmp.ars.junit;
import junit.framework.Test;
import junit.framework.TestSuite;
import servletunit.struts.CactusStrutsTestCase;
public class TestReportEngineAction extends CactusStrutsTestCase{
private static
String CLASSNAME = "TestReportEngineAction";
public TestReportEngineAction(String arg0)
{
super(arg0);
String METHODNAME = "TestReportEngineAction";
System.out.println("inside TestReportEngineAction Constructor");
}
public static
Test suite()
{
System.out.println("inside TestReportEngineAction Suite");
return new TestSuite(TestReportEngineAction.class);
}
public void testGetOnlineEventsList()
{
int l_iTemp = 5;
int l_iAdd2 = 10;
System.out.println("inside TestReportEngineAction getOnlineeventlist1");
int l_iSum = l_iTemp + l_iAdd2;
System.out.println("inside TestReportEngineAction getOnlineeventlist2");
assertEquals(l_iSum,15);
//ARSLogger.logDebug(CLASSNAME, METHODNAME, ARSConstants.EXIT);
}
}
appreciate your help on this