Skip to content

Commit 55383e4

Browse files
authored
change compatible with windows (#4)
1 parent efa4d51 commit 55383e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)