@Before public void init() { super.init(); goro = spy((OnDemandBindingGoro) Goro.bindOnDemandWith(context)); }
@Override protected void setUp() throws Exception { super.setUp(); createApplication(); new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { GoroService.setup(getContext(), Goro.createWithDelegate(AsyncTask.THREAD_POOL_EXECUTOR)); } }); this.goro = (OnDemandBindingGoro) Goro.bindOnDemandWith(getApplication()); }