Skip to content

Instantly share code, notes, and snippets.

@gilgoldzweig
Created February 3, 2019 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilgoldzweig/3cc68d231e141ac9dbc5791f3be8dd0a to your computer and use it in GitHub Desktop.
Save gilgoldzweig/3cc68d231e141ac9dbc5791f3be8dd0a to your computer and use it in GitHub Desktop.
The first part of the ExamplePresenterTest
@RunWith(MockitoJUnitRunner::class)
class ExamplePresenterTest {
@Mock
private lateinit var view: ExampleContract.View
@Spy
private var presenter: ExamplePresenter = ExamplePresenter()
@Before
fun setUp() {
presenter.attach(view)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment