java.lang.AssertionError: JSON path "$.retCode" expected:[200] but was:[500]
at org.springframework.test.util.AssertionErrors.fail([AssertionErrors.java:59](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java%3A59)%22%2C%22Study-Management%22%5D))
at org.springframework.test.util.AssertionErrors.assertEquals([AssertionErrors.java:122](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java%3A122)%22%2C%22Study-Management%22%5D))
at org.springframework.test.util.JsonPathExpectationsHelper.assertValue([JsonPathExpectationsHelper.java:123](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.util.JsonPathExpectationsHelper.assertValue(JsonPathExpectationsHelper.java%3A123)%22%2C%22Study-Management%22%5D))
at org.springframework.test.web.servlet.result.JsonPathResultMatchers.lambda$value$2([JsonPathResultMatchers.java:111](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.web.servlet.result.JsonPathResultMatchers.lambda%24value%242(JsonPathResultMatchers.java%3A111)%22%2C%22Study-Management%22%5D))
at org.springframework.test.web.servlet.MockMvc$1.andExpect([MockMvc.java:214](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.web.servlet.MockMvc%241.andExpect(MockMvc.java%3A214)%22%2C%22Study-Management%22%5D))
at mogakco.StudyManagement.util.TestUtil.checkExpectedVal([TestUtil.java:75](command:_java.test.openStackTrace?%5B%22%5Ctat%20mogakco.StudyManagement.util.TestUtil.checkExpectedVal(TestUtil.java%3A75)%22%2C%22Study-Management%22%5D))
at mogakco.StudyManagement.util.TestUtil.performRequest([TestUtil.java:46](command:_java.test.openStackTrace?%5B%22%5Ctat%20mogakco.StudyManagement.util.TestUtil.performRequest(TestUtil.java%3A46)%22%2C%22Study-Management%22%5D))
at mogakco.StudyManagement.controller.MemberControllerTest.logoutSuccess([MemberControllerTest.java:120](command:_java.test.openStackTrace?%5B%22%5Ctat%20mogakco.StudyManagement.controller.MemberControllerTest.logoutSuccess(MemberControllerTest.java%3A120)%22%2C%22Study-Management%22%5D))
at java.base/java.util.ArrayList.forEach([ArrayList.java:1511](command:_java.test.openStackTrace?%5B%22%5Ctat%20java.base%2Fjava.util.ArrayList.forEach(ArrayList.java%3A1511)%22%2C%22Study-Management%22%5D))
at java.base/java.util.ArrayList.forEach([ArrayList.java:1511](command:_java.test.openStackTrace?%5B%22%5Ctat%20java.base%2Fjava.util.ArrayList.forEach(ArrayList.java%3A1511)%22%2C%22Study-Management%22%5D))
안녕하세요 @MeMyself-And-I !
다름이 아니라, main에서 전체 controller test를 실행 시, logout method만 test에 실패합니다
redis에 container 이름 추가와 함께 restart 되지 않는 이슈를 확인해주세요
발생한 에러 로그 첨부드립니다
확인 후 수정 부탁드립니다