*/
public void testCactifyEarWithNoParametersSpecified() throws Exception
{
File testPom = new File(getBasedir(), "target/test-classes/unit/ear/basic-"
+ "cactify-noparameters/plugin-config.xml");
CactifyEarMojo mojo = (CactifyEarMojo) lookupMojo("cactifyear", testPom);
assertNotNull(mojo);
try
{
mojo.execute();
fail("Exception should have been raised!");
}
catch (MojoExecutionException mex)
{
assertEquals("You need to specify [srcFile] attribute for cactification!", mex.getMessage());