Reenable tests for the so-api-handler-infra and mso-requests-db modules 23/140223/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Fri, 14 Feb 2025 10:50:24 +0000 (11:50 +0100)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Fri, 14 Feb 2025 10:50:24 +0000 (11:50 +0100)
- exception message that is asserted in test likely changed due to version
  update of the org.json dependency that was done in the meantime

Issue-ID: SO-4138
Change-Id: I48499cccc40f7c01e3d3f14def6301c8a6486cc1
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
mso-api-handlers/mso-api-handler-infra/pom.xml
mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/tenantisolation/helpers/SDCClientHelperTest.java
mso-api-handlers/mso-requests-db/pom.xml

index 64728a9..be58227 100644 (file)
       <artifactId>spring-boot-starter-test</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.junit.vintage</groupId>
+      <artifactId>junit-vintage-engine</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-configuration-processor</artifactId>
index 0639021..391d190 100644 (file)
@@ -79,7 +79,7 @@ public class SDCClientHelperTest extends BaseTest {
         assertEquals("500", jsonResponse.get("statusCode"));
         assertEquals("", jsonResponse.get("messageId"));
         assertEquals(
-                " Encountered Error while calling SDC POST Activate. JSONObject[\"requestError\"] is not a JSONObject.",
+                " Encountered Error while calling SDC POST Activate. JSONObject[\"requestError\"] is not a JSONObject (class java.lang.String : ).",
                 jsonResponse.get("message"));
 
     }
index 886e27e..77f03c0 100644 (file)
       <artifactId>spring-boot-starter-test</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.junit.vintage</groupId>
+      <artifactId>junit-vintage-engine</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.glassfish.jersey.core</groupId>
       <artifactId>jersey-common</artifactId>