You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2018/10/28 14:44:03 UTC
[maven-remote-resources-plugin] branch master updated: avoid
encoding warnings in unit tests for process
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-remote-resources-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new e73114c avoid encoding warnings in unit tests for process
e73114c is described below
commit e73114c4a9a497586aa42f2295be73d17bc12d25
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Oct 28 15:44:01 2018 +0100
avoid encoding warnings in unit tests for process
---
.../maven/plugin/resources/remote/RemoteResourcesMojoTest.java | 6 ++++--
src/test/resources/unit/rrmojotest/process-plugin-config.xml | 1 +
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/maven/plugin/resources/remote/RemoteResourcesMojoTest.java b/src/test/java/org/apache/maven/plugin/resources/remote/RemoteResourcesMojoTest.java
index 4c8e444..04c7972 100644
--- a/src/test/java/org/apache/maven/plugin/resources/remote/RemoteResourcesMojoTest.java
+++ b/src/test/java/org/apache/maven/plugin/resources/remote/RemoteResourcesMojoTest.java
@@ -444,12 +444,14 @@ public class RemoteResourcesMojoTest
return mojo;
}
+
protected BundleRemoteResourcesMojo lookupBundleMojoWithDefaultSettings( final MavenProject project )
throws Exception
{
File resourceDir = new File( project.getBasedir() + "/src/main/resources" );
return lookupBundleMojoWithSettings( project, resourceDir, null );
}
+
protected BundleRemoteResourcesMojo lookupBundleMojoWithSettings( final MavenProject project,
File resourceDir, String sourceEncoding )
throws Exception
@@ -491,8 +493,8 @@ public class RemoteResourcesMojoTest
null, //Settings settings,
null, //ArtifactRepository localRepository,
null, //EventDispatcher eventDispatcher,
- new ReactorManager(new ArrayList<MavenProject>()),
- Arrays.asList("install"),
+ new ReactorManager( new ArrayList<MavenProject>() ),
+ Arrays.asList( "install" ),
project.getBasedir().toString(),
new Properties(),
Calendar.getInstance().getTime() );
diff --git a/src/test/resources/unit/rrmojotest/process-plugin-config.xml b/src/test/resources/unit/rrmojotest/process-plugin-config.xml
index ab3cbb2..8d3ab14 100644
--- a/src/test/resources/unit/rrmojotest/process-plugin-config.xml
+++ b/src/test/resources/unit/rrmojotest/process-plugin-config.xml
@@ -25,6 +25,7 @@ under the License.
<artifactId>maven-remote-resources-plugin</artifactId>
<configuration>
<localRepository>${localRepository}</localRepository>
+ <encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>