[feat #23] : 답변 채택 API #39
GitHub Actions / Test Results
failed
Aug 9, 2024 in 0s
2 fail, 14 skipped, 18 pass in 5s
Annotations
Check warning on line 0 in com.dnd.gongmuin.question_post.controller.QuestionPostControllerTest
github-actions / Test Results
[보유 크레딧이 부족하면 질문글을 등록할 수 없다.] (com.dnd.gongmuin.question_post.controller.QuestionPostControllerTest) failed
build/test-results/test/TEST-com.dnd.gongmuin.question_post.controller.QuestionPostControllerTest.xml [took 0s]
Raw output
java.lang.AssertionError: JSON path "$.code" expected:<MEMBER_003> but was:<G_001>
at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:59)
at org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java:122)
at org.springframework.test.util.JsonPathExpectationsHelper.assertValue(JsonPathExpectationsHelper.java:123)
at org.springframework.test.web.servlet.result.JsonPathResultMatchers.lambda$value$2(JsonPathResultMatchers.java:111)
at org.springframework.test.web.servlet.MockMvc$1.andExpect(MockMvc.java:214)
at com.dnd.gongmuin.question_post.controller.QuestionPostControllerTest.registerQuestionPostFail(QuestionPostControllerTest.java:79)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Check warning on line 0 in com.dnd.gongmuin.question_post.controller.QuestionPostControllerTest
github-actions / Test Results
[질문글을 등록할 수 있다.] (com.dnd.gongmuin.question_post.controller.QuestionPostControllerTest) failed
build/test-results/test/TEST-com.dnd.gongmuin.question_post.controller.QuestionPostControllerTest.xml [took 0s]
Raw output
java.lang.AssertionError: Status expected:<200> but was:<400>
at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:59)
at org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java:122)
at org.springframework.test.web.servlet.result.StatusResultMatchers.lambda$matcher$9(StatusResultMatchers.java:637)
at org.springframework.test.web.servlet.MockMvc$1.andExpect(MockMvc.java:214)
at com.dnd.gongmuin.question_post.controller.QuestionPostControllerTest.registerQuestionPost(QuestionPostControllerTest.java:50)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Loading