You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/04/26 10:01:10 UTC
[maven-assembly-plugin] branch mockito updated: Fix unittest
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch mockito
in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git
The following commit(s) were added to refs/heads/mockito by this push:
new ee5a8a5 Fix unittest
ee5a8a5 is described below
commit ee5a8a52c3db03cf3dae5e8e50f25abd84e0dae2
Author: rfscholte <rf...@apache.org>
AuthorDate: Sun Apr 26 12:00:58 2020 +0200
Fix unittest
---
.../maven/plugins/assembly/archive/task/AddFileSetsTaskTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/maven/plugins/assembly/archive/task/AddFileSetsTaskTest.java b/src/test/java/org/apache/maven/plugins/assembly/archive/task/AddFileSetsTaskTest.java
index ee46b1b..b6a4dc0 100644
--- a/src/test/java/org/apache/maven/plugins/assembly/archive/task/AddFileSetsTaskTest.java
+++ b/src/test/java/org/apache/maven/plugins/assembly/archive/task/AddFileSetsTaskTest.java
@@ -122,8 +122,10 @@ public class AddFileSetsTaskTest
public void testAddFileSet_ShouldAddDirectory()
throws Exception
{
+ File basedir = temporaryFolder.getRoot();
+
final FileSet fs = new FileSet();
- fs.setDirectory( "dir" );
+ fs.setDirectory( temporaryFolder.newFolder( "dir" ).getName() );
fs.setOutputDirectory( "dir2" );
// the logger sends a debug message with this info inside the addFileSet(..) method..
@@ -134,6 +136,7 @@ public class AddFileSetsTaskTest
final AssemblerConfigurationSource configSource = mock( AssemblerConfigurationSource.class );
final MavenProject project = new MavenProject( new Model() );
+ project.setFile( new File( basedir, "pom.xml" ) );
DefaultAssemblyArchiverTest.setupInterpolators( configSource, project );