}
@Test(dependsOnMethods = "test_check_after", expectedExceptions = MojoFailureException.class)
public void test_check_before_update() throws Exception
{
LicenseCheckMojo mojo = new LicenseCheckMojo()
{
{
super.basedir = new File("target/documents3");
super.header = "target/documents3/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();
}