問題タブ [expresso]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - How do I test this Custom UI Class to have code coverage
I made a custom UI class EzCustomEditTextEmail
by extending TextInputEditText
and have written the test class (EmailUITest
) for the same in android(test) package. I am trying to achieve code coverage for the Custom UI class and used Mockito for the same . write now what I am trying is to verify the line setMaxLines(1)
in the inIt()
method of EzCustomEditTextEmail
class and getting NullPointerException at the constructor
at super(context)
My test Class
I'm getting NullPointerException at the constructor
-> super(context)