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 2025/10/25 12:14:36 UTC
(maven-war-plugin) branch master updated: Remove methods that don't do much (#570)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 5bb31c1 Remove methods that don't do much (#570)
5bb31c1 is described below
commit 5bb31c1897a30ded5b6700e6a5904ec535cd3175
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Sat Oct 25 12:14:32 2025 +0000
Remove methods that don't do much (#570)
---
.../org/apache/maven/plugins/war/WarInPlaceMojoTest.java | 4 ----
src/test/java/org/apache/maven/plugins/war/WarMojoTest.java | 4 ----
.../java/org/apache/maven/plugins/war/WarOverlaysTest.java | 4 ----
.../org/apache/maven/plugins/war/stub/ZipArtifactStub.java | 12 ------------
4 files changed, 24 deletions(-)
diff --git a/src/test/java/org/apache/maven/plugins/war/WarInPlaceMojoTest.java b/src/test/java/org/apache/maven/plugins/war/WarInPlaceMojoTest.java
index 83183f8..c92b994 100644
--- a/src/test/java/org/apache/maven/plugins/war/WarInPlaceMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/war/WarInPlaceMojoTest.java
@@ -41,10 +41,6 @@ public class WarInPlaceMojoTest extends AbstractWarMojoTest {
assertNotNull(mojo);
}
- public void testEnvironment() throws Exception {
- // see setUp
- }
-
public void testSimpleExplodedInplaceWar() throws Exception {
// setup test data
String testId = "SimpleExplodedInplaceWar";
diff --git a/src/test/java/org/apache/maven/plugins/war/WarMojoTest.java b/src/test/java/org/apache/maven/plugins/war/WarMojoTest.java
index d85a4c7..4cadc2a 100644
--- a/src/test/java/org/apache/maven/plugins/war/WarMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/war/WarMojoTest.java
@@ -55,10 +55,6 @@ public class WarMojoTest extends AbstractWarMojoTest {
mojo = (WarMojo) lookupMojo("war", pomFile);
}
- public void testEnvironment() throws Exception {
- // see setup
- }
-
public void testSimpleWar() throws Exception {
String testId = "SimpleWar";
MavenProject4CopyConstructor project = new MavenProject4CopyConstructor();
diff --git a/src/test/java/org/apache/maven/plugins/war/WarOverlaysTest.java b/src/test/java/org/apache/maven/plugins/war/WarOverlaysTest.java
index 68540ca..991711f 100644
--- a/src/test/java/org/apache/maven/plugins/war/WarOverlaysTest.java
+++ b/src/test/java/org/apache/maven/plugins/war/WarOverlaysTest.java
@@ -51,10 +51,6 @@ public class WarOverlaysTest extends AbstractWarExplodedMojoTest {
return new File(getBasedir(), "target/test-classes/unit/waroverlays");
}
- public void testEnvironment() throws Exception {
- // see setup
- }
-
public void testNoOverlay() throws Exception {
// setup test data
final String testId = "no-overlay";
diff --git a/src/test/java/org/apache/maven/plugins/war/stub/ZipArtifactStub.java b/src/test/java/org/apache/maven/plugins/war/stub/ZipArtifactStub.java
index 02092c0..3114f83 100644
--- a/src/test/java/org/apache/maven/plugins/war/stub/ZipArtifactStub.java
+++ b/src/test/java/org/apache/maven/plugins/war/stub/ZipArtifactStub.java
@@ -39,22 +39,10 @@ public class ZipArtifactStub extends AbstractArtifactStub {
return null;
}
- public ArtifactHandler getArtifactHandler() {
- return super.getArtifactHandler();
- }
-
- public String getScope() {
- return super.getScope();
- }
-
public String getVersion() {
return "1.0";
}
- public boolean isOptional() {
- return super.isOptional();
- }
-
public File getFile() {
return this.zip;
}