samedi 22 août 2015

Unit testing a custom view with only setter methods

I am writing a custom view which I would like to unit test, however its only output is the view that is drawn to the canvas (in onDraw). Its methods are all setter methods that take input, but provide no meaningful output.

It would seem incredibly tedious to try to match the graphical output with pre-rendered comparison images, but I cannot think of another way to test this custom view. Can anyone provide any suggestions?

Aucun commentaire:

Enregistrer un commentaire