Hello list,
i'm new to cactus... and it seems that i have some trouble
configurating the cactus.
i use maven b9. cactus plugin 2.0.
cactus seems to work fine untill i got that exception (i only have ne
test class)
[mkdir] Created dir:
D:\CVSLOCAL\mve\generation\target\cactus\test-cactus-reports
[junit] Running com.les800.mve.vxml.modules.GenererMveTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,653
sec
[junit] Testsuite: com.les800.mve.vxml.modules.GenererMveTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1,653
sec
[junit]
[junit] Testcase: testGenererMve took 1,052 sec
[junit] Caused an ERROR
[junit] ServiceBroker: unknown service PoolService requested
[junit] org.apache.turbine.services.InstantiationException:
ServiceBroker: unknown service PoolService requested
[junit] at
org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseServiceBroker.java:354)
[junit] at
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:296)
[junit] at
org.apache.turbine.util.RunDataFactory.getRunData(RunDataFactory.java:139)
[junit] at
com.les800.mve.vxml.modules.GenererMveTest.setUp(Unknown Source)
[junit] at
org.apache.cactus.AbstractWebServerTestCase.runBareServerTest(AbstractWebServerTestCase.java:133)
[junit] at
org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:157)
AND here is the test case i use :
public class GenererMveTest extends ServletTestCase
{
private GenererMve genererMve = null;
private RunData runData = null;
private Context context = null;
private Turbine turbine = null;
/**
* This setup will be running server side. We startup Turbine and
* get our test port from the properties. This gets run before
* each testXXX test.
*/
public void setUp()
throws Exception
{
super.setUp();
config.setInitParameter("properties",
"/WEB-INF/conf/TurbineResources.properties");
turbine = new Turbine();
turbine.init();
// Create the context objects to be used during testing.
runData = RunDataFactory.getRunData(request, response, config);
context = TurbineVelocity.getContext(runData);
// Create the Action
genererMve = (GenererMve) ActionLoader.getInstance()
.getInstance("GenererMve");
}
/**
* After each testXXX test runs, shut down the Turbine servlet.
*/
protected void tearDown()
throws Exception
{
turbine.destroy();
super.tearDown();
}
/**
* Tests if an daughterboard displays nicely.
*
*/
public void testGenererMve()
throws Exception
{
// Add parameters to the RunData that will be used
runData.getParameters().setString ("IdMve", "511");
// Call the do* method
genererMve.doPerform(runData);
// Evaulate the results
int resultCode = runData.getStatusCode();
assertEquals ("StatusCode", 511, resultCode);
}
}
I have verified that the TR.p is correctly placed.
In advance thank you for any help
Rapha�l Pi�roni
=====
------------------------------------
| Rapha�l Pi�roni |
| 33+ 223 351 354 |
| mailto:[EMAIL PROTECTED] |
| http://www.dexem.com |
| mailing:[EMAIL PROTECTED] |
------------------------------------
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]