Compare commits

..

No commits in common. "74ebf9b841ff450a7b197b59cb4a46ca01671884" and "7d37afbba167ff2af94634e4cc96f5b2a88054d6" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ class DemoService(
fun doSomething(request: SolutionForPrimitive) {
log.info { "solution for primitive requests: $request" }
request.value?.let { log.info { "value: ${request.value}" } }
log.info { "value: ${request.value!!}" }
}
fun doSomething(request: WrapperRequest) {

View File

@ -21,7 +21,7 @@ import org.springframework.test.web.servlet.result.MockMvcResultMatchers.status
class DemoControllerTest {
@Autowired
private lateinit var mockMvc: MockMvc
private val mockMvc: MockMvc? = null
@DisplayName("Wrapper 타입인 경우 값이 입력되지 않으면 HttpMessageNotReadableException이 발생한다.")
@ParameterizedTest(name = "{0}")
@ -76,7 +76,7 @@ class DemoControllerTest {
}
}
private fun run(endpoint: String, body: String, expectedStatus: Int): ResultActions = mockMvc
private fun run(endpoint: String, body: String, expectedStatus: Int): ResultActions = mockMvc!!
.perform(
post(endpoint)
.contentType(MediaType.APPLICATION_JSON_VALUE)