private val mockFactory = mock<HeinekenFactory>() class HeinekenFactory data class Heineken ( val price: String, val volume: String, val createdAt: Long ) private val mockFactory = mock<HeinekenFactory>()
private val mockFactory = mock<HeinekenFactory>() class HeinekenFactory // final class data class Heineken ( val price: String, val volume: String, val createdAt: Long ) private val mockFactory = mock<HeinekenFactory>()
{ MockKAnnotations.init(this) } @Nested inner class Factory1 { @Test fun `check HeinekenFactory do some work`() { //… } @Test fun `check HeinekenFactory do the other work`() { //… } } //… }
{ MockKAnnotations.init(this) } @Nested inner class Factory1 { @Test fun `check HeinekenFactory do some work`() { //… } @Test fun `check HeinekenFactory do the other work`() { //… } } //… }