Search in sources :

Example 1 with MockRepositorySessionFactory

use of org.apache.archiva.mock.MockRepositorySessionFactory in project archiva by apache.

the class RepositoryPurgeConsumerTest method setUp.

@Before
@Override
public void setUp() throws Exception {
    super.setUp();
    MockRepositorySessionFactory factory = applicationContext.getBean(MockRepositorySessionFactory.class);
    factory.setRepository(metadataRepository);
}
Also used : MockRepositorySessionFactory(org.apache.archiva.mock.MockRepositorySessionFactory) Before(org.junit.Before)

Aggregations

MockRepositorySessionFactory (org.apache.archiva.mock.MockRepositorySessionFactory)1 Before (org.junit.Before)1