Optional<Question> oq = this.questionRepository.findById(2);
assertTrue(oq.isPresent());
Question q = oq.get();
List<Answer> answerList = q.getAnswerList();
assertEquals(1, answerList.size());
assertEquals("네 자동으로 생성됩니다.", answerList.get(0).getContent());
에서 실행을 하면
org.opentest4j.AssertionFailedError:
Expected :네 자동으로 생성됩니다
Actual :자동으로 생성됩니다
이런 오류가 생김 이유는 값이 다르기 때문이다