How to test a call to setContentView?
How do I write a unit test to 开发者_如何学运维determine that the layout used in setContentView(int layoutId)
has been called and corresponds to the proper layout for a given activity?
Check Calculon. There is a simple way to do what you want.
精彩评论