amanda.hinchman-dominguez
06/12/2018, 12:45 AM@WebMvcTest
@ExtendWith(SpringExtension::class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class HttpApiTests(@Autowired val mockMvc: MockMvc, @Autowired val restTemplate : TestRestTemplate) { ... }
amanda.hinchman-dominguez
06/12/2018, 12:48 AM(Application::class)
, but Kotlin expects a different type, so I'm just kind of at a blocker here. I'm starting with the Mockito example from Spring-Boot guide, but I assume something has been updated since that. I'm reviewing Mockito Kotlin documentation now, but may need to dig into Mockito itself to try and figure out what about the class setup is failing.mp
06/12/2018, 12:55 AMmp
06/12/2018, 12:56 AMClass
, not a Kotlin KClass
, so Application::class.java
may be what you want.amanda.hinchman-dominguez
06/12/2018, 1:01 AMamanda.hinchman-dominguez
06/12/2018, 1:03 AMtried that too - it then tells me it expects a different type:▾
mp
06/12/2018, 1:04 AMamanda.hinchman-dominguez
06/12/2018, 1:04 AMmp
06/12/2018, 1:05 AMamanda.hinchman-dominguez
06/12/2018, 1:06 AMmp
06/12/2018, 1:06 AMamanda.hinchman-dominguez
06/12/2018, 1:06 AMamanda.hinchman-dominguez
06/12/2018, 1:07 AMmp
06/12/2018, 1:07 AMmp
06/12/2018, 1:08 AMamanda.hinchman-dominguez
06/12/2018, 1:09 AMmp
06/12/2018, 1:09 AMamanda.hinchman-dominguez
06/12/2018, 1:10 AMmp
06/12/2018, 1:10 AMamanda.hinchman-dominguez
06/12/2018, 1:11 AMpoohbar
06/12/2018, 1:26 AMpoohbar
06/12/2018, 1:29 AMamanda.hinchman-dominguez
06/12/2018, 1:46 AMdave08
06/12/2018, 1:46 AMdave08
06/12/2018, 1:49 AMdave08
06/12/2018, 1:50 AMdave08
06/12/2018, 1:50 AMdave08
06/12/2018, 1:51 AMamanda.hinchman-dominguez
06/12/2018, 1:52 AMamanda.hinchman-dominguez
06/12/2018, 1:54 AM