diff options
author | 2024-09-21 21:41:29 +0200 | |
---|---|---|
committer | 2024-09-22 18:16:38 +0200 | |
commit | 4d1b2cd24f060b1a4849f411a09a04346f22dc06 (patch) | |
tree | 00aacc5f811e4d79c2e9688ff2f0b72ad54aebe0 /aai-resources/src/test | |
parent | e40453c7a7cc6258fd9aa58e0dbb45bac0fbdbfb (diff) |
Migrate JAXB to jakarta
- change javax.* JAXB packages to jakarta.*
- bump snapshot version to 1.15.0-SNAPSHOT
Issue-ID: AAI-4005
Change-Id: I304328d2b8d2b943919f741f63b8842ac2ee126b
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'aai-resources/src/test')
-rw-r--r-- | aai-resources/src/test/java/org/onap/aai/rest/ModelDistributionTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/aai-resources/src/test/java/org/onap/aai/rest/ModelDistributionTest.java b/aai-resources/src/test/java/org/onap/aai/rest/ModelDistributionTest.java index 2177dacf..1ba8652e 100644 --- a/aai-resources/src/test/java/org/onap/aai/rest/ModelDistributionTest.java +++ b/aai-resources/src/test/java/org/onap/aai/rest/ModelDistributionTest.java @@ -23,7 +23,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import java.nio.file.Files; -import java.nio.file.Paths; +import java.nio.file.Path; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.MethodOrderer; @@ -73,7 +73,7 @@ public class ModelDistributionTest { .expectStatus() .isNotFound(); - String modelPayload = new String(Files.readAllBytes(Paths.get(MODEL_FILE))); + String modelPayload = new String(Files.readAllBytes(Path.of(MODEL_FILE))); webClient.put() .uri(uri) .accept(MediaType.APPLICATION_XML) @@ -126,7 +126,7 @@ public class ModelDistributionTest { .expectStatus() .isNotFound(); - String modelPayload = new String(Files.readAllBytes(Paths.get(MODEL_FILE))); + String modelPayload = new String(Files.readAllBytes(Path.of(MODEL_FILE))); webClient.put() .uri(modelUri) .accept(MediaType.APPLICATION_XML) @@ -148,7 +148,7 @@ public class ModelDistributionTest { ModelVersion modelVersion = objectMapper.readValue(modelVersionResponse, ModelVersion.class); assertNull(modelVersion.getModelElements()); - String updatePayload = new String(Files.readAllBytes(Paths.get(UPDATE_MODEL_FILE))) + String updatePayload = new String(Files.readAllBytes(Path.of(UPDATE_MODEL_FILE))) .replace("resourceVersion", modelVersion.getResourceVersion()); webClient.put() .uri(modelVersionUri) |