Sergio Crespo Toubes
verify(exactly = 1) { mView.showLocations(any()) } // Reset verify locationListPresenter.onFilterTextChanged(text) verify(exactly = 1) { mView.showLocations(any()) }
IsolationMode.InstancePerLeaf
oleksiyp
Given("filter") { val locationListPresenter = LocationListPresenter(mView, mLocationManager, true) When("text changed") { val text = "test" verify(exactly = 1) { mView.showLocations(any()) } verify(exactly = 1) { mView.setSelectedItem(any()) } locationListPresenter.onFilterTextChanged(text) Then("store user first time") { verify(exactly = 2) { mView.showLocations(any()) } verify(exactly = 2) { mView.setSelectedItem(any()) } } } }
A modern programming language that makes developers happier.