interface LoginDisplay {
var username: String
var password: String
}
class LoginActivityLoginDisplay : LoginDisplay {
override var username: String
get() = usernameEditView.text.toString()
set(value) {
usernameEditView.setText(value)
}
override var password: String
get() = passwordEditView.text.toString()
set(value) {
passwordEditView.setText(value)
}
}
This is sample code that I would like to test with Mockito as follows:
verify(contract.loginDisplay).username
It is difficult to say that in this call I can only check the user name of the field field, in the meantime I would like to check the call to the installer of this field.
Any help?
source
share