thanksforallthefish
09/18/2019, 2:14 PMmp
09/18/2019, 2:28 PMthanksforallthefish
09/18/2019, 2:30 PMmockk
) it works, in spring test I see methods used in the extension function being calledthanksforallthefish
09/18/2019, 2:31 PMmp
09/18/2019, 2:41 PMPartModelKt.toDto(partRepository.save(partForRepository), [], [], [], [], [])
kotlin equivalent
partRepository.save(partForRepository).toDto(/*optional args*/)
mp
09/18/2019, 2:42 PMthanksforallthefish
09/18/2019, 2:46 PMmockkStatic
, that should mockk the universe if I got it correctly, no matter the actual implementationthanksforallthefish
09/19/2019, 7:02 AMmockkStatic
, because I defined my extension function as module wide.