use of com.thoughtworks.go.util.TempFiles in project gocd by gocd.
the class X509CertificateGeneratorTest method setup.
@Before
public void setup() {
tempFiles = new TempFiles();
keystore = new File(tempFiles.createUniqueFolder("X509CertificateGeneratorTest"), "keystore");
}
use of com.thoughtworks.go.util.TempFiles in project gocd by gocd.
the class BackupServiceTest method setUp.
@Before
public void setUp() throws Exception {
systemEnvironment = mock(SystemEnvironment.class);
tempFiles = new TempFiles();
when(systemEnvironment.getConfigDir()).thenReturn(tempFiles.createUniqueFile("config_dir").getAbsolutePath());
serverVersion = mock(ServerVersion.class);
configRepo = mock(ConfigRepository.class);
databaseStrategy = mock(Database.class);
when(configRepo.doLocked(Matchers.<ThrowingFn<Object, Exception>>any())).thenCallRealMethod();
}
Aggregations