phaseControl.setMatcher( MockControl.ALWAYS_MATCHER );
final MockControl csControl = MockControl.createControl( AssemblerConfigurationSource.class );
mm.add( csControl );
final AssemblerConfigurationSource configSource = (AssemblerConfigurationSource) csControl.getMock();
final File tempDir = fileManager.createTempDir();
FileUtils.deleteDirectory( tempDir );
configSource.getTemporaryRootDirectory();
csControl.setReturnValue( tempDir, MockControl.ZERO_OR_MORE );
configSource.isDryRun();
csControl.setReturnValue( false, MockControl.ZERO_OR_MORE );
configSource.isIgnoreDirFormatExtensions();
csControl.setReturnValue( false, MockControl.ZERO_OR_MORE );
final File outDir = fileManager.createTempDir();
macMgr.archiver.setDestFile( new File( outDir, "full-name.zip" ) );
try
{
macMgr.archiver.createArchive();
}
catch ( final ArchiverException e )
{
fail( "Should never happen" );
}
catch ( final IOException e )
{
fail( "Should never happen" );
}
configSource.getOutputDirectory();
csControl.setReturnValue( outDir );
configSource.getFinalName();
csControl.setReturnValue( "finalName" );
configSource.getArchiverConfig();
csControl.setReturnValue( null, MockControl.ZERO_OR_MORE );
configSource.getWorkingDirectory();
csControl.setReturnValue( new File( "." ), MockControl.ZERO_OR_MORE );
configSource.isUpdateOnly();
csControl.setReturnValue( false, MockControl.ZERO_OR_MORE );
configSource.isIgnorePermissions();
csControl.setReturnValue( true, MockControl.ZERO_OR_MORE );
final Assembly assembly = new Assembly();
assembly.setId( "id" );