Skip to content

Instantly share code, notes, and snippets.

View mpeng3's full-sized avatar

Matthew Groves mpeng3

View GitHub Profile
@mpeng3
mpeng3 / tidbit_32_example.kt
Last active September 3, 2019 13:46
The test I was trying to write
data class SampleEvent(val name: String)
interface SampleInterface {
fun startDiscovery(consumer: Consumer<Observable<SampleEvent>>)
}
@RunWith(PowerMockRunner::class)
class SampleInterfaceTest {
private var mockInterface = Mockito.mock<SampleInterface>(SampleInterface::class.java)