use of org.apache.maven.plugins.assembly.testutils.TestFileManager in project maven-plugins by apache.
the class AddFileSetsTaskTest method setUp.
@Override
public void setUp() {
mockManager = new EasyMockSupport();
fileManager = new TestFileManager("add-fileset.test.", "");
macTask = new MockAndControlForAddFileSetsTask(mockManager, fileManager);
}
use of org.apache.maven.plugins.assembly.testutils.TestFileManager in project maven-plugins by apache.
the class AddDirectoryTaskTest method setUp.
public void setUp() {
fileManager = new TestFileManager("ArchiveAssemblyUtils.test.", "");
mockManager = new EasyMockSupport();
archiver = mockManager.createMock(Archiver.class);
}
use of org.apache.maven.plugins.assembly.testutils.TestFileManager in project maven-plugins by apache.
the class DefaultAssemblyReaderTest method setUp.
@Override
public void setUp() {
fileManager = new TestFileManager("assembly-reader.test.", ".xml");
mockManager = new EasyMockSupport();
configSource = mockManager.createMock(AssemblerConfigurationSource.class);
ArtifactRepository localRepo = mockManager.createMock(ArtifactRepository.class);
expect(localRepo.getBasedir()).andReturn("/path/to/local/repo").anyTimes();
expect(configSource.getLocalRepository()).andReturn(localRepo).anyTimes();
expect(configSource.getRemoteRepositories()).andReturn(Collections.<ArtifactRepository>emptyList()).anyTimes();
expect(configSource.getMavenSession()).andReturn(null).anyTimes();
}
Aggregations