Search in sources :

Example 1 with MockConfiguration

use of org.apache.archiva.maven.repository.metadata.storage.mock.MockConfiguration in project archiva by apache.

the class MavenRepositoryProviderTest method setUp.

@Before
public void setUp() throws Exception {
    provider = new MavenRepositoryProvider();
    MockConfiguration mockConfiguration = new MockConfiguration();
    mockConfiguration.getConfiguration().setArchivaRuntimeConfiguration(new ArchivaRuntimeConfiguration());
    mockConfiguration.getConfiguration().getArchivaRuntimeConfiguration().setRepositoryBaseDirectory("repositories");
    provider.setArchivaConfiguration(mockConfiguration);
}
Also used : ArchivaRuntimeConfiguration(org.apache.archiva.configuration.model.ArchivaRuntimeConfiguration) MockConfiguration(org.apache.archiva.maven.repository.metadata.storage.mock.MockConfiguration) Before(org.junit.Before)

Aggregations

ArchivaRuntimeConfiguration (org.apache.archiva.configuration.model.ArchivaRuntimeConfiguration)1 MockConfiguration (org.apache.archiva.maven.repository.metadata.storage.mock.MockConfiguration)1 Before (org.junit.Before)1