Search in sources :

Example 1 with EnvService

use of net.nemerosa.ontrack.model.support.EnvService in project ontrack by nemerosa.

the class SVNClientImplTest method before.

@Before
public void before() {
    SVNEventDao svnEventDao = mock(SVNEventDao.class);
    TransactionService transactionService = mock(TransactionService.class);
    EnvService envService = mock(EnvService.class);
    File dir = FileUtils.getTempDirectory();
    when(envService.getWorkingDir("svn", "spooling")).thenReturn(dir);
    client = new SVNClientImpl(svnEventDao, envService, transactionService);
}
Also used : EnvService(net.nemerosa.ontrack.model.support.EnvService) TransactionService(net.nemerosa.ontrack.tx.TransactionService) SVNEventDao(net.nemerosa.ontrack.extension.svn.db.SVNEventDao) File(java.io.File) Before(org.junit.Before)

Aggregations

File (java.io.File)1 SVNEventDao (net.nemerosa.ontrack.extension.svn.db.SVNEventDao)1 EnvService (net.nemerosa.ontrack.model.support.EnvService)1 TransactionService (net.nemerosa.ontrack.tx.TransactionService)1 Before (org.junit.Before)1