스크럼
- 오전 스크럼
- 문서화 (WebMvcTest)
- 깃훅 git commit —amend가 안됨 ⇒ 해결
마무리점검 (6시 40분)
- 어려움을 겪는 중..
이슈
Spring Boot 테스트 에러 : JPA metamodel must not be empty!
- 테스트 메소드에 @Transactional을 걸어도 AUTO INCREMENT 값은 증가한다
- ID를 하드코딩하지 않고 응답에서 읽어오게해서 사용
// When var result = mockMvc .perform( post("/v1/users") .contentType(MediaType.APPLICATION_JSON) .content(objectMapper.writeValueAsString(request)) ) .andExpect( MockMvcResultMatchers .jsonPath("$.common.internalHttpStatusCode") .value(200) ) .andReturn(); // Then Long userId = JsonPath .parse(result.getResponse().getContentAsString()) .read("$.data[0].userId", Long.class); String maybeName = userRepository.getById(userId).getName(); assertThat(maybeName, equalTo(name));
오늘의 링크 공유
Filter 에 오늘 날짜만 설정 하면 좋을 것 같아요 🙂
목록
![[팀]조규현 공간(1-2)](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fbccf8e74-7462-46c9-bf54-264ba3f2845e%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA_2021-09-27_%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE_5.45.11.png?table=block&id=f8e45e2e-c66c-48da-a402-d54b8154e4aa&cache=v2)
