Search in sources :

Example 1 with TestFileManager

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);
}
Also used : EasyMockSupport(org.easymock.classextension.EasyMockSupport) TestFileManager(org.apache.maven.plugins.assembly.testutils.TestFileManager) MockAndControlForAddFileSetsTask(org.apache.maven.plugins.assembly.archive.task.testutils.MockAndControlForAddFileSetsTask)

Example 2 with TestFileManager

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);
}
Also used : EasyMockSupport(org.easymock.classextension.EasyMockSupport) TestFileManager(org.apache.maven.plugins.assembly.testutils.TestFileManager) Archiver(org.codehaus.plexus.archiver.Archiver)

Example 3 with TestFileManager

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();
}
Also used : EasyMockSupport(org.easymock.classextension.EasyMockSupport) TestFileManager(org.apache.maven.plugins.assembly.testutils.TestFileManager) ArtifactRepository(org.apache.maven.artifact.repository.ArtifactRepository) AssemblerConfigurationSource(org.apache.maven.plugins.assembly.AssemblerConfigurationSource)

Aggregations

TestFileManager (org.apache.maven.plugins.assembly.testutils.TestFileManager)3 EasyMockSupport (org.easymock.classextension.EasyMockSupport)3 ArtifactRepository (org.apache.maven.artifact.repository.ArtifactRepository)1 AssemblerConfigurationSource (org.apache.maven.plugins.assembly.AssemblerConfigurationSource)1 MockAndControlForAddFileSetsTask (org.apache.maven.plugins.assembly.archive.task.testutils.MockAndControlForAddFileSetsTask)1 Archiver (org.codehaus.plexus.archiver.Archiver)1