문제 상황MessageSource를 이용해서 messages_en.properties에 있는 값을 반환하는데 ‘ 작은따옴표 문자가 정상적으로 출력되지 않는 문제가 있었습니다. 상황 1일반 문자열에 ‘(작은따옴표)를 사용하면 원하는 값을 정상적으로 출력상황 2일반 문자열 + 템플릿 문자를 사용한 경우 ‘(작은따옴표)가 정상적으로 출력되지 않았습니다.MessageSource 인터페이스를 뜯어보면서 MessageFormat가 연관이 있는 것을 확인하고 검색을 해보니 자바 공식문서에 아래와 같은 글이 있었습니다. Within a String, a pair of single quotes can be used to quote any arbitrary characters except single quotes.→ 하나..
단위 테스트를 작성하면서 다시는 헷갈리지 않기 위해 영어 문서(Baeldung)을 참고하여 정리하였습니다. @ExtendWith(MockitoExtention.class)this is specific to JUnit5, and enables Mockito annotations like @Mock, @InjectMocks, and @Spy in the test classJUnit5에 관한 어노테이션이며, Mockito 어노테이션을 사용할 수 있게 해 줍니다.@ExtendWith(MockitoExtension.class)class ExampleTest { @InjectMocks private ExampleService exampleService; @Mock ExampleRepository examp..