Skip to content

Commit

Permalink
chore: 사소한 수정..
Browse files Browse the repository at this point in the history
  • Loading branch information
k000927 committed Jul 31, 2024
1 parent 7bec1e1 commit 71b9e1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@SpringBootApplication
@EnableJpaAuditing
public class CasperEventApplication {

public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package JGS.CasperEvent.domain.event.repository;

import JGS.CasperEvent.domain.event.entity.casperBot.CasperBot;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface CasperBotRepository {
public interface CasperBotRepository extends JpaRepository<CasperBot, Long> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.springframework.web.filter.CharacterEncodingFilter;

import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;

@WebMvcTest(HealthController.class)
Expand All @@ -32,8 +33,9 @@ public void setup(){
void HealthTest() throws Exception {
mockMvc.perform(get("/health"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.statusCode").value(200))
.andExpect(jsonPath("$.result").value(true));
.andExpect(jsonPath("$.message").value("요청에 성공하였습니다."))
.andExpect(jsonPath("$.result").value(true))
.andDo(print());
}

}

0 comments on commit 71b9e1b

Please sign in to comment.