@Test public void shouldGoToHomePageAfterInitInventoryAndSetNeedInventoryToFalse() { bulkInventoryActivity.goToNextPage(); Intent startIntent = shadowOf(bulkInventoryActivity).getNextStartedActivity(); assertEquals(startIntent.getComponent().getClassName(), HomeActivity.class.getName()); assertEquals(SharedPreferenceMgr.getInstance().isNeedsInventory(), false); }
@Override protected void goToNextPage() { preferencesMgr.setIsNeedsInventory(false); startActivity(HomeActivity.getIntentToMe(this)); this.finish(); }
BulkInitialInventoryActivity extends InventoryActivity { @Override protected void goToNextPage() { preferencesMgr.setIsNeedsInventory(false); startActivity(HomeActivity.getIntentToMe(this)); this.finish(); } }
BulkInitialInventoryActivity extends InventoryActivity { @Override protected void goToNextPage() { preferencesMgr.setIsNeedsInventory(false); startActivity(HomeActivity.getIntentToMe(this)); this.finish(); }  }
BulkInitialInventoryActivity extends InventoryActivity { @Override protected void goToNextPage() { preferencesMgr.setIsNeedsInventory(false); startActivity(HomeActivity.getIntentToMe(this)); this.finish(); }  @Override void initUI(); @Override boolean validateInventory(); View.OnClickListener goToAddNonBasicProductsLister(); @Override void onBackPressed(); }
BulkInitialInventoryActivity extends InventoryActivity { @Override protected void goToNextPage() { preferencesMgr.setIsNeedsInventory(false); startActivity(HomeActivity.getIntentToMe(this)); this.finish(); }  @Override void initUI(); @Override boolean validateInventory(); View.OnClickListener goToAddNonBasicProductsLister(); @Override void onBackPressed(); static final String KEY_FROM_INITIAL_COMPLETED; static final int REQUEST_CODE; final String EMPTY_STRING; }