ds.setScope( Artifact.SCOPE_COMPILE );
ds.setDirectoryMode( Integer.toString( 10, 8 ) );
ds.setFileMode( Integer.toString( 10, 8 ) );
final MockAndControlForAddDependencySetsTask macTask =
new MockAndControlForAddDependencySetsTask( mockManager, new MavenProject( new Model() ) );
final ArtifactMock artifactMock = new ArtifactMock( mockManager, "group", "artifact", "version", "jar", false );
final File artifactFile = artifactMock.setNewFile();
if ( unpack )
{
macTask.expectAddArchivedFileSet();
macTask.expectModeChange( -1, -1, 10, 10, 2 );
}
else
{
macTask.expectAddFile( artifactFile, outputLocation + "/artifact", 10 );
}
macTask.expectGetDestFile( new File( "junk" ) );
macTask.expectCSGetFinalName( "final-name" );
macTask.expectCSGetRepositories( null, null );
macTask.expectGetSession( null );
final MavenProject depProject = new MavenProject( new Model() );
macTask.expectBuildFromRepository( depProject );
final Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" );
final AddDependencySetsTask task =
new AddDependencySetsTask( Collections.singletonList( ds ),