본문 바로가기
  • 소소한 개발자 이야기

junit3

[인텔리제이] JUnit Test 실패 No tests found for given includes Intellij 에서 Junit 테스트를 하는 중 갑자기 Error가 발생했다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':eatgo-common:test'. > No tests found for given includes: (filter.includeTestsMatching) * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help .. 2023. 1. 13.
[인텔리제이] JUnit Test 실패 No tests found for given includes Intellij 에서 Junit 테스트를 하는 중 갑자기 Error가 발생했다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':eatgo-common:test'. > No tests found for given includes: (filter.includeTestsMatching) * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help .. 2022. 12. 19.
[JUnit] POST, PATCH mvc.perform Content with Json JUnit Test를 할 때, perform() 메서드를 활용하여 controller 호출 방식을 지정한다. 또 controller 호출 시, 어떠한 값을 주입할 것인가를 설정 하는데 그것이 바로 content()메서드이다. 어떠한 값을 주입을 할 것인가는 contentType에서 설정할 수 있다. String, JSON, XML 등을 설정 할 수 있다. JSON으로 할 경우 contentType을 JSON 으로 설정하고 content안에 JSON format으로 작성하면 Controller에서 RequestBody를 받을 시 JSON 형태로 받을 수 있다. 하지만 여기서 주의해야 할 것이 있다. 예전 버전에서는 contentType를 JSON으로 설정하고 content안에 JSON format을 그냥 .. 2022. 10. 13.