From 2a2b37169e5a0996ad5f594bceeba8d2fbf3f061 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Sat, 4 Jul 2020 09:09:11 -0400 Subject: [PATCH] simplify test --- .../apache/maven/plugins/jar/JarMojoTest.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/test/java/org/apache/maven/plugins/jar/JarMojoTest.java b/src/test/java/org/apache/maven/plugins/jar/JarMojoTest.java index 601b769..8fc256c 100644 --- a/src/test/java/org/apache/maven/plugins/jar/JarMojoTest.java +++ b/src/test/java/org/apache/maven/plugins/jar/JarMojoTest.java @@ -34,26 +34,14 @@ public class JarMojoTest { private File testPom = new File( getBasedir(), "src/test/resources/unit/jar-basic-test/pom.xml" ); - protected void setUp() - throws Exception - { - - // required for mojo lookups to work - super.setUp(); - - } - /** - * tests the proper discovery and configuration of the mojo + * Tests the discovery and configuration of the mojo. * - * @throws Exception in case of an error. + * @throws Exception in case of an error */ public void testJarTestEnvironment() throws Exception { - - // File pom = new File( getBasedir(), "src/test/resources/unit/clean/pom.xml" ); - JarMojo mojo = (JarMojo) lookupMojo( "jar", testPom ); assertNotNull( mojo );