shawn.lu
06/07/2016, 5:04 PMyole
06/07/2016, 5:16 PMshawn.lu
06/07/2016, 5:17 PMzoltu
06/07/2016, 5:49 PMzoltu
06/07/2016, 5:49 PMzoltu
06/07/2016, 6:33 PMsimtse
06/07/2016, 7:17 PM@data
on purpose). The getters are more than the standard return. However, I noticed that in order for me to mock the object in Mockito, I had to make the val as an open val
in order to mock the getter. Is that expected? What is a better way of doing this?jw
06/07/2016, 7:18 PMjw
06/07/2016, 7:19 PMsimtse
06/07/2016, 7:21 PMjw
06/07/2016, 7:22 PMopen
declarations you cannot mock the response since it will be unable to override the method.jw
06/07/2016, 7:23 PMsimtse
06/07/2016, 7:24 PMcypher121
06/07/2016, 8:10 PMsreich
06/07/2016, 8:11 PMcypher121
06/07/2016, 8:12 PMcypher121
06/07/2016, 8:13 PMfoo<T>(init: T.() -> Unit)
from filename, I would write a plugin that sends an instruction to compiler to infer the typecypher121
06/07/2016, 8:13 PMsargunv
06/07/2016, 8:14 PMsargunv
06/07/2016, 8:14 PMcypher121
06/07/2016, 8:16 PMsreich
06/07/2016, 8:27 PMmichaelsims
06/07/2016, 9:19 PMString getTitle();
method. Should I be able to implement that in a Kotlin class as a property (override val title: String? = null
) ? The IDE suggests this but then complains that 'title' overrides nothing
. This works if I convert it to a function. Am I trying something that isn't supported?zoltu
06/07/2016, 9:20 PMkotlin-test-junit
?zoltu
06/07/2016, 9:20 PMoverride val title: String? get() = null
?zoltu
06/07/2016, 9:20 PMmichaelsims
06/07/2016, 9:21 PMzoltu
06/07/2016, 9:21 PMvmironov
06/07/2016, 9:22 PMvmironov
06/07/2016, 9:22 PM