mockserver1 [Test] webClient 통신 테스트 (mockServer) // build.gradle plugins{ // add testImplementation("org.mock-server:mockserver-netty:5.7.2") } mockserver 의존성 추가 @TestInstance(TestInstance.Lifecycle.PER_CLASS) abstract class MockServerNettyHelper { companion object { val GSON = Gson() } private val host = "http://localhost" private val port = 8000 lateinit var mockServer: ClientAndServer @BeforeAll fun startMockServer() { // #1 mockServer = Cl.. 2019. 12. 8. 이전 1 다음