}
@Test(expectedExceptions = MojoFailureException.class)
public void test_execution_url_classpath() throws Exception
{
LicenseCheckMojo mojo = new LicenseCheckMojo()
{
{
super.basedir = new File(".");
super.header = "header.txt"; // locate in test/resources
super.properties = new HashMap<String, String>()
{
{
put("year", "2008");
put("email", "mathieu.carbou@gmail.com");
}
};
}
};
mojo.execute();
}