diff --git a/kjb-errors/src/test/java/com/eactive/eai/kjb/errors/OAuth2BearerAuthTest.java b/kjb-errors/src/test/java/com/eactive/eai/kjb/errors/OAuth2BearerAuthTest.java index 064e02b..ca2b9d1 100644 --- a/kjb-errors/src/test/java/com/eactive/eai/kjb/errors/OAuth2BearerAuthTest.java +++ b/kjb-errors/src/test/java/com/eactive/eai/kjb/errors/OAuth2BearerAuthTest.java @@ -54,14 +54,16 @@ class OAuth2BearerAuthTest { } // Step 2: Bearer 토큰으로 인증 API 호출 - String apiUrl = TestConfig.getBaseUrl("/api/auth/case009?transactionId=1234567890"); + String apiUrl = TestConfig.getBaseUrl("/api/auth/case009?transactionId=1234567890¶meterTest1=parameterTestValue1¶meterTest2=parameterTestValue2"); try (CloseableHttpClient httpClient = HttpClients.createDefault()) { HttpPost httpPost = new HttpPost(apiUrl); httpPost.setHeader("Authorization", "Bearer " + accessToken); httpPost.setHeader("Content-Type", "application/json"); - httpPost.setEntity(new StringEntity("{}", ContentType.APPLICATION_JSON)); + httpPost.setEntity(new StringEntity("{}", ContentType.APPLICATION_JSON)); + + String responseBody = httpClient.execute(httpPost, response -> { String body = EntityUtils.toString(response.getEntity()); System.out.println("Response Body: " + body);