Skip to content

Commit 5905e34

Browse files
committed
change compatible with windows
1 parent efa4d51 commit 5905e34

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/integrationTest/java/uk/gov/hmcts/cp/openapi/OpenAPIPublisherTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ void generateDocs() throws Exception {
3838
.getResponse()
3939
.getContentAsByteArray();
4040

41-
try (OutputStream outputStream = Files.newOutputStream(Paths.get("/tmp/openapi-specs.json"))) {
41+
String tempDir = System.getProperty("java.io.tmpdir");
42+
String path = Paths.get(tempDir, "openapi-specs.json").toString();
43+
44+
try (OutputStream outputStream = Files.newOutputStream(Paths.get(path))) {
4245
outputStream.write(specs);
4346
}
4447

0 commit comments

Comments
 (0)