From 237893ed94413303eb5a36ac5254b9686442c1ab Mon Sep 17 00:00:00 2001
From: panos-kakos <102670093+panos-kakos@users.noreply.github.com>
Date: Sun, 11 Jun 2023 10:43:39 +0300
Subject: [PATCH] Java 20625 (#14213)
* [JAVA-20625] Opened packages + disabled karate integration until upgrade
* [JAVA-20625] Formatting
---
testing-modules/rest-testing/pom.xml | 15 +++++++++++++++
.../rest/karate/KarateIntegrationTest.java | 6 +++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/testing-modules/rest-testing/pom.xml b/testing-modules/rest-testing/pom.xml
index f03d4f3803..323c46a5fc 100644
--- a/testing-modules/rest-testing/pom.xml
+++ b/testing-modules/rest-testing/pom.xml
@@ -94,6 +94,21 @@
true
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED
+ --add-opens java.base/java.util=ALL-UNNAMED
+ --add-opens java.base/java.lang.reflect=ALL-UNNAMED
+ --add-opens java.base/java.text=ALL-UNNAMED
+ --add-opens java.desktop/java.awt.font=ALL-UNNAMED
+
+
+
+
diff --git a/testing-modules/rest-testing/src/test/java/com/baeldung/rest/karate/KarateIntegrationTest.java b/testing-modules/rest-testing/src/test/java/com/baeldung/rest/karate/KarateIntegrationTest.java
index 5da2784179..59d14e6ae0 100644
--- a/testing-modules/rest-testing/src/test/java/com/baeldung/rest/karate/KarateIntegrationTest.java
+++ b/testing-modules/rest-testing/src/test/java/com/baeldung/rest/karate/KarateIntegrationTest.java
@@ -2,16 +2,16 @@ package com.baeldung.rest.karate;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
-import com.intuit.karate.junit4.Karate;
import cucumber.api.CucumberOptions;
import org.junit.AfterClass;
import org.junit.BeforeClass;
-import org.junit.runner.RunWith;
+
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
-@RunWith(Karate.class)
+//We need to upgrade to latest version of Karate for JDK17 --- JAVA-22250
+//@RunWith(Karate.class)
@CucumberOptions(features = "classpath:karate")
public class KarateIntegrationTest {