Have you looked in the Turbine cvs /src/test-cactus directory? There are examples in there I believe that would help you...
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 26, 2003 9:26 AM > To: [EMAIL PROTECTED] > Subject: Cactus - Turbine - Intake > > > Hi, > > We are developing our tests for a Turbine app with Cactus. > Our problem is > that we don't know how to work with it in those cases when we > test business > objects that deal with the intake service. > > We need that the test context includes the initialized intake > tool, but all > we achieve is a context with a void intake tool. This is the > code to load > rundata and context: > > > protected void setUp() throws Exception > { > super.setUp(); > > rundata = ((RunDataService) TurbineServices.getInstance > ().getService(RunDataService.SERVICE_NAME)).getRunData(request > , response, > config); > context = TurbineVelocity.getContext(rundata); > > assertNotNull( "Got rundata", rundata); > > // We try to load context with its loaded services > TurbineServices ts = (TurbineServices) > TurbineServices.getInstance (); > PullService pullService = (PullService) > ts.getService(PullService.SERVICE_NAME); > pullService.populateContext(context, rundata); > > } > > Any idea? > > Thanks, > > Jose > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
