@Test public void onStartDoesNotCallInitLoader() { mBindingManager.onStart(mContext); verify(mLoaderManager, never()).initLoader(anyInt(), any(Bundle.class), any(LoaderManager.LoaderCallbacks.class)); }
public void onStart(final Context context) { mHasStarted = true; final Set<Integer> ids = mIdToBindDefinitionMap.keySet(); for (final Integer id : ids) { startLoader(id); } }
BindingManager implements LoaderCallbacks<Cursor> { public void onStart(final Context context) { mHasStarted = true; final Set<Integer> ids = mIdToBindDefinitionMap.keySet(); for (final Integer id : ids) { startLoader(id); } } }
BindingManager implements LoaderCallbacks<Cursor> { public void onStart(final Context context) { mHasStarted = true; final Set<Integer> ids = mIdToBindDefinitionMap.keySet(); for (final Integer id : ids) { startLoader(id); } } BindingManager(final Context context, final LoaderManager loaderManager);  BindingManager(final Context context, final LoaderManager loaderManager, final BindDefinition bindDefinition);  BindingManager(final Context context, final LoaderManager loaderManager, final List<BindDefinition> bindDefinitions); }
BindingManager implements LoaderCallbacks<Cursor> { public void onStart(final Context context) { mHasStarted = true; final Set<Integer> ids = mIdToBindDefinitionMap.keySet(); for (final Integer id : ids) { startLoader(id); } } BindingManager(final Context context, final LoaderManager loaderManager);  BindingManager(final Context context, final LoaderManager loaderManager, final BindDefinition bindDefinition);  BindingManager(final Context context, final LoaderManager loaderManager, final List<BindDefinition> bindDefinitions); void addBindDefinition(final BindDefinition bindDefinition); @Override Loader<Cursor> onCreateLoader(final int id, final Bundle args); @Override void onLoadFinished(final Loader<Cursor> loader, final Cursor cursor); @Override void onLoaderReset(final Loader<Cursor> loader); void onStart(final Context context); void onStop(final Context context); void restartLoader(final BindDefinition bindDefinition); }
BindingManager implements LoaderCallbacks<Cursor> { public void onStart(final Context context) { mHasStarted = true; final Set<Integer> ids = mIdToBindDefinitionMap.keySet(); for (final Integer id : ids) { startLoader(id); } } BindingManager(final Context context, final LoaderManager loaderManager);  BindingManager(final Context context, final LoaderManager loaderManager, final BindDefinition bindDefinition);  BindingManager(final Context context, final LoaderManager loaderManager, final List<BindDefinition> bindDefinitions); void addBindDefinition(final BindDefinition bindDefinition); @Override Loader<Cursor> onCreateLoader(final int id, final Bundle args); @Override void onLoadFinished(final Loader<Cursor> loader, final Cursor cursor); @Override void onLoaderReset(final Loader<Cursor> loader); void onStart(final Context context); void onStop(final Context context); void restartLoader(final BindDefinition bindDefinition);  }