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]

Reply via email to