error format 변경 , token 발급 url 변경

This commit is contained in:
pksup
2025-12-11 16:28:51 +09:00
parent e4d36d51c4
commit 13b525f077
3 changed files with 3 additions and 3 deletions
@@ -27,7 +27,7 @@ class OAuth2BearerAuth404ErrorTest {
@Test
void testCase001_Bearer인증_존재하지않는API_404에러() throws Exception {
// Step 1: 토큰 발급
String tokenUrl = TestConfig.getBaseUrl("/oauth/token");
String tokenUrl = TestConfig.getBaseUrl("/oauth2/token");
String accessToken;
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
@@ -27,7 +27,7 @@ class OAuth2BearerAuthTest {
@Test
void testCase001_Bearer인증_성공() throws Exception {
// Step 1: 토큰 발급
String tokenUrl = TestConfig.getBaseUrl("/oauth/token");
String tokenUrl = TestConfig.getBaseUrl("/oauth2/token");
String accessToken;
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
@@ -25,7 +25,7 @@ class OAuth2TokenSuccessTest {
@Test
void testCase001_토큰발급성공() throws Exception {
// given
String url = TestConfig.getBaseUrl("/oauth/token");
String url = TestConfig.getBaseUrl("/oauth2/token");
List<NameValuePair> params = new ArrayList<>();
params.add(new BasicNameValuePair("grant_type", "client_credentials"));