Design patterns·The shape of the whole application
the view is an interface with setTitle and showError on it, and the presenter is what you actually unit test.
Model-view-presenter
Also calledMVP, model view presenter, passive view
A variant of MVC where the view is passive and holds no logic, and a presenter reads from the model and pushes formatted values into it through an interface. The point is testability: the presenter can be tested against a fake view with no UI framework at all. It costs a method on the view interface for every field on the screen, which is why it faded once binding-based approaches arrived.