Skip to content

Commit

Permalink
feat(connect): upgrade to apache httpclient 5.x
Browse files Browse the repository at this point in the history
- consolidate version.httpclient property
  • Loading branch information
strangelookingnerd committed Nov 13, 2024
1 parent 0136734 commit 297d773
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion clients/java/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>${version.httpclient5}</version>
<version>${version.httpclient}</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected HttpResponse getResponse() {
@Test
public void testSuccessfulResponseCode() {
// given
testResponse.statusCode(200);
testResponse.code(200);
// when
HttpResponse response = getResponse();
// then
Expand All @@ -104,7 +104,7 @@ public void testSuccessfulResponseCode() {
@Test
public void testResponseErrorCodeForMalformedRequest() {
// given
testResponse.statusCode(400);
testResponse.code(400);
// when
HttpResponse response = getResponse();
// then
Expand All @@ -114,7 +114,7 @@ public void testResponseErrorCodeForMalformedRequest() {
@Test
public void testResponseErrorCodeForServerError() {
// given
testResponse.statusCode(500);
testResponse.code(500);
// when
HttpResponse response = getResponse();
// then
Expand All @@ -124,7 +124,7 @@ public void testResponseErrorCodeForServerError() {
@Test
public void testServerErrorResponseWithConfigOptionSet() {
// given
testResponse.statusCode(500);
testResponse.code(500);
try {
// when
connector.createRequest().configOption("throw-http-error", "TRUE").url("http://camunda.com").get().execute();
Expand All @@ -138,7 +138,7 @@ public void testServerErrorResponseWithConfigOptionSet() {
@Test
public void testMalformedRequestWithConfigOptionSet() {
// given
testResponse.statusCode(400);
testResponse.code(400);
try {
// when
connector.createRequest().configOption("throw-http-error", "TRUE").url("http://camunda.com").get().execute();
Expand All @@ -152,7 +152,7 @@ public void testMalformedRequestWithConfigOptionSet() {
@Test
public void testSuccessResponseWithConfigOptionSet() {
// given
testResponse.statusCode(200);
testResponse.code(200);
// when
connector.createRequest().configOption("throw-http-error", "TRUE").url("http://camunda.com").get().execute();
// then
Expand All @@ -163,7 +163,7 @@ public void testSuccessResponseWithConfigOptionSet() {
@Test
public void testMalformedRequestWithConfigOptionSetToFalse() {
// given
testResponse.statusCode(400);
testResponse.code(400);
// when
connector.createRequest().configOption("throw-http-error", "FALSE").url("http://camunda.com").get().execute();
// then
Expand Down
3 changes: 1 addition & 2 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
<version.xml.jaxb-impl>2.3.6</version.xml.jaxb-impl>
<version.xml.jaxb-impl4>4.0.5</version.xml.jaxb-impl4>
<version.jakarta.xml.bind-api>4.0.2</version.jakarta.xml.bind-api>
<version.httpclient>4.5.14</version.httpclient>
<version.httpclient5>5.3</version.httpclient5>
<version.httpclient>5.4</version.httpclient>

<version.slf4j>1.7.26</version.slf4j>
<version.logback>1.2.11</version.logback>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-starter/starter-security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>${version.httpclient5}</version>
<version>${version.httpclient}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 297d773

Please sign in to comment.