5556575859606162636465
} }; } }; mojo.execute(); } @Test(dependsOnMethods = "test_check_before") public void test_add() throws Exception {
99100101102103104105106107108109
} }; } }; mojo.execute(); } @Test(dependsOnMethods = "test_check_after", expectedExceptions = MojoFailureException.class) public void test_check_before_update() throws Exception {
121122123124125126127128129130131
} }; } }; mojo.execute(); } @Test(dependsOnMethods = "test_check_before_update") public void test_update() throws Exception {
165166167168169170171172
} }; } }; mojo.execute(); } }
3940414243444546474849
{ super.basedir = new File("."); super.header = "src/etc/header.txt"; } }; mojo.execute(); } @Test public void test_execution_quiet() throws Exception {
5455565758596061626364
super.header = "src/etc/header.txt"; super.quiet = true; super.failIfMissing = false; } }; mojo.execute(); } @Test public void test_execution_no_mapping() throws Exception {
6869707172737475767778
super.basedir = new File("."); super.header = "src/etc/header.txt"; super.useDefaultMapping = false; } }; mojo.execute(); } @Test(expectedExceptions = InvalidResourceException.class) public void test_execution_bad_header() throws Exception {
8182838485868788899091
{ super.basedir = new File("."); super.header = "src/etc/header_bad.txt"; } }; mojo.execute(); } @Test(expectedExceptions = MojoFailureException.class) public void test_execution_url_file_system() throws Exception {
949596979899100101102103104
{ super.basedir = new File("src/test/project"); super.header = "documents/header.txt"; } }; mojo.execute(); } @Test(expectedExceptions = MojoFailureException.class) public void test_execution_url_classpath() throws Exception {
107108109110111112113114115116117
{ super.basedir = new File("."); super.header = "header.txt"; // locate in test/resources } }; mojo.execute(); } @Test public void test_selection() throws Exception {