mirror of https://github.com/apache/maven.git
o Fixed request copying to actually return copy
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@900569 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d2fd838ce
commit
f7c13251e2
|
@ -172,7 +172,7 @@ public class DefaultMavenExecutionRequest
|
||||||
copy.setRepositoryCache( original.getRepositoryCache() );
|
copy.setRepositoryCache( original.getRepositoryCache() );
|
||||||
copy.setNoSnapshotUpdates( original.isNoSnapshotUpdates() );
|
copy.setNoSnapshotUpdates( original.isNoSnapshotUpdates() );
|
||||||
copy.setExecutionListener( original.getExecutionListener() );
|
copy.setExecutionListener( original.getExecutionListener() );
|
||||||
return original;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getBaseDirectory()
|
public String getBaseDirectory()
|
||||||
|
|
|
@ -24,13 +24,16 @@ import junit.framework.TestCase;
|
||||||
/**
|
/**
|
||||||
* @author Benjamin Bentmann
|
* @author Benjamin Bentmann
|
||||||
*/
|
*/
|
||||||
public class DefaultMavenExecutionTestCase
|
public class DefaultMavenExecutionTest
|
||||||
extends TestCase
|
extends TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
public void testCopyDefault()
|
public void testCopyDefault()
|
||||||
{
|
{
|
||||||
assertNotNull( DefaultMavenExecutionRequest.copy( new DefaultMavenExecutionRequest() ) );
|
MavenExecutionRequest original = new DefaultMavenExecutionRequest();
|
||||||
|
MavenExecutionRequest copy = DefaultMavenExecutionRequest.copy( original );
|
||||||
|
assertNotNull( copy );
|
||||||
|
assertNotSame( copy, original );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue