From 60a4cff0aa4746a28a2b53f4ce53814cea4612f1 Mon Sep 17 00:00:00 2001 From: choisungwook Date: Tue, 26 Oct 2021 00:20:33 +0900 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20E4-S1=20=EB=A1=9C=EA=B7=B8=EC=9D=B8?= =?UTF-8?q?=20API=20-=20=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=BD=94=EB=93=9C?= =?UTF-8?q?=EC=88=98=EC=A0=95=20#28?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/infp/ciat/config/ProfileTest.java | 21 --------------- .../config/security/JWTLogoutHandlerTest.java | 26 ------------------- 2 files changed, 47 deletions(-) delete mode 100644 backend/src/test/java/com/infp/ciat/config/ProfileTest.java delete mode 100644 backend/src/test/java/com/infp/ciat/config/security/JWTLogoutHandlerTest.java diff --git a/backend/src/test/java/com/infp/ciat/config/ProfileTest.java b/backend/src/test/java/com/infp/ciat/config/ProfileTest.java deleted file mode 100644 index 7eaa193..0000000 --- a/backend/src/test/java/com/infp/ciat/config/ProfileTest.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.infp.ciat.config; - -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.api.Test; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.ActiveProfiles; - -@ActiveProfiles("test") -@SpringBootTest -class ProfileTest { - @Value("${jwt.secret}") - private String jwt_secret; - - @Test - @DisplayName("스프링프로파일 테스트") - public void print() { - System.out.println(jwt_secret); - } - -} diff --git a/backend/src/test/java/com/infp/ciat/config/security/JWTLogoutHandlerTest.java b/backend/src/test/java/com/infp/ciat/config/security/JWTLogoutHandlerTest.java deleted file mode 100644 index 1f281f5..0000000 --- a/backend/src/test/java/com/infp/ciat/config/security/JWTLogoutHandlerTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.infp.ciat.config.security; - -import org.junit.jupiter.api.DisplayName; -import org.junit.jupiter.api.Test; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.ActiveProfiles; -import org.springframework.test.web.servlet.MockMvc; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; - -@ActiveProfiles("test") -@SpringBootTest -@AutoConfigureMockMvc -class JWTLogoutHandlerTest { - @Autowired - private MockMvc mockMvc; - - @Test - @DisplayName("로그아웃 API 호출") - public void Logout() throws Exception { - mockMvc.perform(post("/logout")) - .andExpect(status().isOk()); - } -} \ No newline at end of file