}
@Test(dependsOnMethods = "remove_header", expectedExceptions = MojoFailureException.class)
public void check_after_remove_header() throws Exception
{
LicenseCheckMojo mojo = new LicenseCheckMojo()
{
{
super.basedir = new File("target/documents1");
super.header = "target/documents1/header.txt";
super.excludes = new String[] {"*.svn-base", "*header.txt"};
super.properties = new HashMap<String, String>()
{
{
put("year", "2010");
put("email", "mathieu.carbou@gmail.com");
}
};
super.mapping = new HashMap<String, String>()
{
{
put("toto", "xml");
}
};
}
};
mojo.execute();
}