fjtirado commented on code in PR #1891:
URL: 
https://github.com/apache/incubator-kie-kogito-apps/pull/1891#discussion_r1348668866


##########
data-index/data-index-test-utils/src/main/java/org/kie/kogito/index/test/containers/AbstractDataIndexContainer.java:
##########
@@ -46,7 +50,19 @@ public void setKafkaURL(String kafkaURL) {
     public void addProtoFileFolder() {
         String pathStr = 
"target/classes/META-INF/resources/persistence/protobuf/";
         String absolutePath = new File(pathStr).getAbsolutePath();
+        createIfNotExists(absolutePath);
         withFileSystemBind(absolutePath, "/home/kogito/data/protobufs/", 
BindMode.READ_ONLY);
+
+    }
+
+    public Path createIfNotExists(String absolutePath) {
+        Path path = Paths.get(absolutePath);
+        try {
+            Files.createDirectories(path);
+        } catch (IOException e) {
+            throw new RuntimeException(e);

Review Comment:
   ```suggestion
               throw new UncheckedIOException(e);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to