@@ -41,22 +41,17 @@ public class ResourcesMojoTest extends AbstractMojoTestCase {
4141
4242 /**
4343 * test mojo lookup, test harness should be working fine
44- *
45- * @throws Exception
4644 */
4745 public void testHarnessEnvironment () throws Exception {
4846 File testPom = new File (getBasedir (), defaultPomFilePath );
49- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
47+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
5048
5149 assertNotNull (mojo );
5250 }
5351
54- /**
55- * @throws Exception
56- */
5752 public void testResourceDirectoryStructure () throws Exception {
5853 File testPom = new File (getBasedir (), defaultPomFilePath );
59- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
54+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
6055 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourceDirectoryStructure" );
6156 List <Resource > resources = project .getBuild ().getResources ();
6257
@@ -86,12 +81,9 @@ public void testResourceDirectoryStructure() throws Exception {
8681 assertTrue (FileUtils .fileExists (resourcesDir + "/notpackage/test" ));
8782 }
8883
89- /**
90- * @throws Exception
91- */
9284 public void testResourceDirectoryStructureRelativePath () throws Exception {
9385 File testPom = new File (getBasedir (), defaultPomFilePath );
94- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
86+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
9587 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourceDirectoryStructure_RelativePath" );
9688 List <Resource > resources = project .getBuild ().getResources ();
9789
@@ -122,12 +114,9 @@ public void testResourceDirectoryStructureRelativePath() throws Exception {
122114 assertTrue (FileUtils .fileExists (resourcesDir + "/notpackage/test" ));
123115 }
124116
125- /**
126- * @throws Exception
127- */
128117 public void testResourceEncoding () throws Exception {
129118 File testPom = new File (getBasedir (), defaultPomFilePath );
130- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
119+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
131120 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("encoding" );
132121 List <Resource > resources = project .getBuild ().getResources ();
133122
@@ -151,12 +140,9 @@ public void testResourceEncoding() throws Exception {
151140 assertTrue (FileUtils .fileExists (resourcesDir + "/file4.txt" ));
152141 }
153142
154- /**
155- * @throws Exception
156- */
157143 public void testResourceInclude () throws Exception {
158144 File testPom = new File (getBasedir (), defaultPomFilePath );
159- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
145+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
160146 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourceInclude" );
161147 List <Resource > resources = project .getBuild ().getResources ();
162148
@@ -202,12 +188,9 @@ public void testResourceInclude() throws Exception {
202188 assertFalse (FileUtils .fileExists (resourcesDir + "/notpackage/nottest/file.txt" ));
203189 }
204190
205- /**
206- * @throws Exception
207- */
208191 public void testResourceExclude () throws Exception {
209192 File testPom = new File (getBasedir (), defaultPomFilePath );
210- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
193+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
211194 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourceExclude" );
212195 List <Resource > resources = project .getBuild ().getResources ();
213196
@@ -259,7 +242,7 @@ public void testResourceExclude() throws Exception {
259242 */
260243 public void testResourceTargetPath () throws Exception {
261244 File testPom = new File (getBasedir (), defaultPomFilePath );
262- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
245+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
263246 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourceTargetPath" );
264247 List <Resource > resources = project .getBuild ().getResources ();
265248
@@ -296,7 +279,7 @@ public void testResourceTargetPath() throws Exception {
296279 */
297280 public void testResourceSystemPropertiesFiltering () throws Exception {
298281 File testPom = new File (getBasedir (), defaultPomFilePath );
299- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
282+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
300283 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourceSystemProperties_Filtering" );
301284 List <Resource > resources = project .getBuild ().getResources ();
302285
@@ -342,7 +325,7 @@ public void testResourceSystemPropertiesFiltering() throws Exception {
342325 */
343326 public void testResourceProjectPropertiesFiltering () throws Exception {
344327 File testPom = new File (getBasedir (), defaultPomFilePath );
345- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
328+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
346329 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourceProjectProperties_Filtering" );
347330 List <Resource > resources = project .getBuild ().getResources ();
348331
@@ -373,7 +356,7 @@ public void testResourceProjectPropertiesFiltering() throws Exception {
373356 */
374357 public void testProjectPropertyFilteringPropertyDestination () throws Exception {
375358 File testPom = new File (getBasedir (), defaultPomFilePath );
376- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
359+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
377360 MavenProjectResourcesStub project =
378361 new MavenProjectResourcesStub ("resourcePojectProperty_Filtering_PropertyDestination" );
379362 List <Resource > resources = project .getBuild ().getResources ();
@@ -408,7 +391,7 @@ public void testProjectPropertyFilteringPropertyDestination() throws Exception {
408391 */
409392 public void testPropertyFilesFiltering () throws Exception {
410393 File testPom = new File (getBasedir (), defaultPomFilePath );
411- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
394+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
412395 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourcePropertyFiles_Filtering" );
413396 List <Resource > resources = project .getBuild ().getResources ();
414397 LinkedList <String > filterList = new LinkedList <>();
@@ -441,7 +424,7 @@ public void testPropertyFilesFiltering() throws Exception {
441424 */
442425 public void testPropertyFilesExtra () throws Exception {
443426 File testPom = new File (getBasedir (), defaultPomFilePath );
444- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
427+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
445428 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourcePropertyFiles_Extra" );
446429 List <Resource > resources = project .getBuild ().getResources ();
447430 LinkedList <String > filterList = new LinkedList <>();
@@ -474,7 +457,7 @@ public void testPropertyFilesExtra() throws Exception {
474457 */
475458 public void testPropertyFilesMainAndExtra () throws Exception {
476459 File testPom = new File (getBasedir (), defaultPomFilePath );
477- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
460+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
478461 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("resourcePropertyFiles_MainAndExtra" );
479462 List <Resource > resources = project .getBuild ().getResources ();
480463 LinkedList <String > filterList = new LinkedList <>();
@@ -518,7 +501,7 @@ public void testPropertyFilesMainAndExtra() throws Exception {
518501 */
519502 public void testPropertyFilesFilteringTokensInFilters () throws Exception {
520503 final File testPom = new File (getBasedir (), defaultPomFilePath );
521- final ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
504+ final ResourcesMojo mojo = lookupMojo ("resources" , testPom );
522505 final MavenProjectResourcesStub project =
523506 new MavenProjectResourcesStub ("resourcePropertyFiles_Filtering_TokensInFilters" );
524507 final List <Resource > resources = project .getBuild ().getResources ();
@@ -550,7 +533,7 @@ public void testPropertyFilesFilteringTokensInFilters() throws Exception {
550533
551534 public void testWindowsPathEscapingDisabled () throws Exception {
552535 File testPom = new File (getBasedir (), defaultPomFilePath );
553- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
536+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
554537 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("windows-paths" );
555538 List <Resource > resources = project .getBuild ().getResources ();
556539
@@ -586,7 +569,7 @@ public void testWindowsPathEscapingDisabled() throws Exception {
586569
587570 public void testWindowsPathEscapingEnabled () throws Exception {
588571 File testPom = new File (getBasedir (), defaultPomFilePath );
589- ResourcesMojo mojo = ( ResourcesMojo ) lookupMojo ("resources" , testPom );
572+ ResourcesMojo mojo = lookupMojo ("resources" , testPom );
590573 MavenProjectResourcesStub project = new MavenProjectResourcesStub ("windows-paths" );
591574 List <Resource > resources = project .getBuild ().getResources ();
592575
0 commit comments