From b25b8122af9cfa95c9f803df7610176901c920c7 Mon Sep 17 00:00:00 2001 From: Rwolfe-Nava <richardwolfe@navapbc.com> Date: Wed, 27 Sep 2023 16:36:39 -0400 Subject: [PATCH] test api apache-core5 dependency --- api/pom.xml | 7 +++++++ api/src/test/java/gov/cms/ab2d/api/controller/TLSTest.java | 1 + common/pom.xml | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/api/pom.xml b/api/pom.xml index 5ac409e59..f9da8975a 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -95,11 +95,18 @@ <scope>provided</scope> <type>zip</type> </dependency> + <dependency> <groupId>org.apache.httpcomponents.client5</groupId> <artifactId>httpclient5</artifactId> <version>5.2.1</version> </dependency> + <dependency> + <groupId>org.apache.httpcomponents.core5</groupId> + <artifactId>httpcore5</artifactId> + <version>5.2.3</version> + </dependency> + <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId> diff --git a/api/src/test/java/gov/cms/ab2d/api/controller/TLSTest.java b/api/src/test/java/gov/cms/ab2d/api/controller/TLSTest.java index 597dd2006..48e9afb8f 100644 --- a/api/src/test/java/gov/cms/ab2d/api/controller/TLSTest.java +++ b/api/src/test/java/gov/cms/ab2d/api/controller/TLSTest.java @@ -99,5 +99,6 @@ public void testTLS() throws IOException, CertificateException, NoSuchAlgorithmE HttpMethod.GET, entity, String.class); assertEquals(HttpStatus.OK, response.getStatusCode()); + httpClient.close(); } } diff --git a/common/pom.xml b/common/pom.xml index d8b09aac0..fe44d198a 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -107,7 +107,7 @@ <dependency> <groupId>org.apache.httpcomponents.core5</groupId> <artifactId>httpcore5</artifactId> - <version>5.2.2</version> + <version>5.2.3</version> <scope>test</scope> </dependency> <dependency>