We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efa4d51 commit 55383e4Copy full SHA for 55383e4
src/integrationTest/java/uk/gov/hmcts/cp/openapi/OpenAPIPublisherTest.java
@@ -38,7 +38,10 @@ void generateDocs() throws Exception {
38
.getResponse()
39
.getContentAsByteArray();
40
41
- try (OutputStream outputStream = Files.newOutputStream(Paths.get("/tmp/openapi-specs.json"))) {
+ 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))) {
45
outputStream.write(specs);
46
}
47
0 commit comments