TestCode를 이용해서 동시성 문제를 사용해보려다 생긴 모두가 알법한 아주 간단한 이슈를 정리합니다. 기존의 Junit4에서의 TestCode는 아래와 같은 식으로 작성을 했었다. 내용을 보면 @RunWith, @After 어노테이션을 사용하고 있다. @RunWith(SpringRunner.class) @SpringBootTest public class PostsRepositoryTest { @Autowired PostsRepository postsRepository; @After public void cleanup() { postsRepository.deleteAll(); } @Test public void 게시글저장_불러오기() { //given String title = "테스트 게시글"; St..