This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new f338c9d Remove unused parameter
f338c9d is described below
commit f338c9df7ece4fe758620115ec84d14053e1787a
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Mon Oct 10 22:30:17 2022 +0200
Remove unused parameter
---
.../org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java | 10 ++++------
src/test/java/org/apache/maven/plugins/ear/it/EarMojoIT.java | 6 +++---
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git
a/src/test/java/org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java
b/src/test/java/org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java
index 3fb7c83..58141a5 100644
--- a/src/test/java/org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java
+++ b/src/test/java/org/apache/maven/plugins/ear/it/AbstractEarPluginIT.java
@@ -72,12 +72,11 @@ public abstract class AbstractEarPluginIT
* Execute the EAR plugin for the specified project.
*
* @param projectName the name of the project
- * @param properties extra properties to be used by the embedder
* @param expectNoError true/false
* @param cleanBeforeExecute call clean plugin before execution
* @return the base directory of the project
*/
- protected File executeMojo( final String projectName, final Properties
properties, boolean expectNoError,
+ protected File executeMojo( final String projectName, boolean
expectNoError,
boolean cleanBeforeExecute ) throws
VerificationException, IOException
{
System.out.println( " Building: " + projectName );
@@ -119,13 +118,12 @@ public abstract class AbstractEarPluginIT
* Execute the EAR plugin for the specified project.
*
* @param projectName the name of the project
- * @param properties extra properties to be used by the embedder
* @return the base directory of the project
*/
- protected File executeMojo( final String projectName, final Properties
properties )
+ protected File executeMojo( final String projectName )
throws VerificationException, IOException
{
- return executeMojo( projectName, properties, true, true );
+ return executeMojo( projectName, true, true );
}
/**
@@ -156,7 +154,7 @@ public abstract class AbstractEarPluginIT
final boolean cleanBeforeExecute )
throws VerificationException, IOException
{
- final File baseDir = executeMojo( projectName, new Properties(), true,
cleanBeforeExecute );
+ final File baseDir = executeMojo( projectName, true,
cleanBeforeExecute );
final File earModuleDir = getEarModuleDirectory( baseDir,
earModuleName );
assertEarArchive( earModuleDir, projectName );
diff --git a/src/test/java/org/apache/maven/plugins/ear/it/EarMojoIT.java
b/src/test/java/org/apache/maven/plugins/ear/it/EarMojoIT.java
index 852fc0a..66b8122 100644
--- a/src/test/java/org/apache/maven/plugins/ear/it/EarMojoIT.java
+++ b/src/test/java/org/apache/maven/plugins/ear/it/EarMojoIT.java
@@ -215,7 +215,7 @@ public class EarMojoIT
public void testProject018()
throws Exception
{
- final File baseDir = executeMojo( "project-018", new Properties() );
+ final File baseDir = executeMojo( "project-018" );
final File expectedFile = new File( baseDir,
"target/my-custom-file.ear" );
assertTrue( "EAR archive not found", expectedFile.exists() );
}
@@ -259,7 +259,7 @@ public class EarMojoIT
public void testProject022()
throws Exception
{
- final File baseDir = executeMojo( "project-022", new Properties() );
+ final File baseDir = executeMojo( "project-022" );
final File expectedFile = new File( baseDir,
"target/maven-ear-plugin-test-project-022-99.0-myclassifier.ear" );
assertTrue( "EAR archive not found", expectedFile.exists() );
}
@@ -305,7 +305,7 @@ public class EarMojoIT
public void testProject026()
throws Exception
{
- final File baseDir = executeMojo( "project-026", new Properties(),
false, true );
+ final File baseDir = executeMojo( "project-026", false, true );
// Stupido, checks that the ear archive is not there
assertFalse( "Execution should have failed", getEarArchive( baseDir,
"project-026" ).exists() );
}