@Test public void shouldGetAddNewDrugActivity() { Intent intent = InitialInventoryActivity.getIntentToMe(RuntimeEnvironment.application, true); assertNotNull(intent); assertEquals(intent.getComponent().getClassName(), InitialInventoryActivity.class.getName()); assertTrue(intent.getBooleanExtra(Constants.PARAM_IS_ADD_NEW_DRUG, false)); }
public static Intent getIntentToMe(Context context, boolean isAddNewDrug) { return new Intent(context, InitialInventoryActivity.class) .putExtra(Constants.PARAM_IS_ADD_NEW_DRUG, isAddNewDrug); }
InitialInventoryActivity extends InventoryActivity { public static Intent getIntentToMe(Context context, boolean isAddNewDrug) { return new Intent(context, InitialInventoryActivity.class) .putExtra(Constants.PARAM_IS_ADD_NEW_DRUG, isAddNewDrug); } }
InitialInventoryActivity extends InventoryActivity { public static Intent getIntentToMe(Context context, boolean isAddNewDrug) { return new Intent(context, InitialInventoryActivity.class) .putExtra(Constants.PARAM_IS_ADD_NEW_DRUG, isAddNewDrug); }  }
InitialInventoryActivity extends InventoryActivity { public static Intent getIntentToMe(Context context, boolean isAddNewDrug) { return new Intent(context, InitialInventoryActivity.class) .putExtra(Constants.PARAM_IS_ADD_NEW_DRUG, isAddNewDrug); }  @Override void initUI(); @Override void goToNextPage(); @Override void onBackPressed(); static Intent getIntentToMe(Context context, boolean isAddNewDrug); static Intent getIntentToMe(Context context); }
InitialInventoryActivity extends InventoryActivity { public static Intent getIntentToMe(Context context, boolean isAddNewDrug) { return new Intent(context, InitialInventoryActivity.class) .putExtra(Constants.PARAM_IS_ADD_NEW_DRUG, isAddNewDrug); }  @Override void initUI(); @Override void goToNextPage(); @Override void onBackPressed(); static Intent getIntentToMe(Context context, boolean isAddNewDrug); static Intent getIntentToMe(Context context);  }