we have some unit tests that check whether our view layouts are correct.
For that purpose we create nUIViewDisplay instances and assert their elements.
This scheme was working for some time, but now the tests fail due to NPE on new nUIViewDisplay(id);
At some point in the creation of the view, nUIController.getScreenWidth() is called, where the canvas_interface variable is not initialized which results in NPE.
We use junit4.
Is this expected behavior?
Do we need to change the tests or the way they are executed?