You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/07/04 13:09:31 UTC
[maven-jar-plugin] 01/01: simplify test
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch clean
in repository https://gitbox.apache.org/repos/asf/maven-jar-plugin.git
commit 4548405b80fd9ed626e6fb15f57432058491f262
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sat Jul 4 09:09:11 2020 -0400
simplify test
---
.../java/org/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 );