Is it possible to inject UI-Elements into Testcases? (RoboGuice, Robolectric, Android) -


i figured out how inject non-ui-elements (android) testclass, using robolectric , roboguice. unfortunately not able figure out how inject android-ui-elements testclass.

possible @ present state of development of roboguice , robolectric?

if possible, can give me hint find tutorial or offer small code-example? if not possible right hint nice too.

thanks

no not possible. injectview code accepts 1 argument serves source , destination. can't inject references of views activity object.

you can check source more information: https://github.com/roboguice/roboguice/blob/master/roboguice/src/main/java/roboguice/inject/viewlistener.java#l162


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -