use of com.thoughtworks.go.util.TempFiles in project gocd by gocd.
the class PerforceFixture method setUp.
@Before
public void setUp() throws Exception {
p4Fixture = new P4Fixture();
p4Fixture.setRepo(createTestRepo());
clientFolder = TestFileUtil.createTempFolder("p4Client");
if (clientFolder == null) {
throw new RuntimeException();
}
outputconsumer = ProcessOutputStreamConsumer.inMemoryConsumer();
p4 = p4Fixture.createClient();
tmpFiles = new TempFiles();
tempDir = tmpFiles.mkdir("tempDir");
}
use of com.thoughtworks.go.util.TempFiles in project gocd by gocd.
the class CommandRepositoryInitializerTest method setUp.
@Before
public void setUp() {
serverHealthService = mock(ServerHealthService.class);
systemEnvironment = mock(SystemEnvironment.class);
zipUtil = mock(ZipUtil.class);
zipInputStream = mock(ZipInputStream.class);
when(systemEnvironment.get(SystemEnvironment.VERSION_FILE_IN_DEFAULT_COMMAND_REPOSITORY)).thenReturn("version.txt");
CommandRepositoryInitializer initializer = new CommandRepositoryInitializer(systemEnvironment, zipUtil, serverHealthService);
spy = spy(initializer);
tempFiles = new TempFiles();
}
use of com.thoughtworks.go.util.TempFiles in project gocd by gocd.
the class CommandRepositoryInitializerIntegrationTest method setUp.
@Before
public void setUp() {
tempFiles = new TempFiles();
initializer = new CommandRepositoryInitializer(new SystemEnvironment(), new ZipUtil(), null);
}
use of com.thoughtworks.go.util.TempFiles in project gocd by gocd.
the class MaterialCheckerTest method setUp.
@Before
public void setUp() throws Exception {
materialRepository = Mockito.mock(MaterialRepository.class);
tempFiles = new TempFiles();
mockMaterial = Mockito.mock(ScmMaterial.class);
materialChecker = new MaterialChecker(materialRepository);
workingFolder = tempFiles.createUniqueFolder("materialChecker");
}
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");
}
Aggregations