https://kotlinlang.org logo
#spring
Title
# spring
s

sdavids

06/11/2016, 2:37 AM
Hey, are there any tricks to get MockMVC to work in Kotlin? Just trying to do something simple:
Copy code
@Before
    fun setUp() {
        mvc = MockMvcBuilders.webAppContextSetup(context).apply(springSecurity()).build()
    }
I get an error of:
Type inference failed: Not enough information to infer parameter T in ... Please specify it explicitly
on the apply method.
2 Views