• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Junit in Linux m/c

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic