@Test public void shouldGetIntentToMeWithStockIdAndStockName() { Intent intent = StockMovementHistoryActivity.getIntentToMe(RuntimeEnvironment.application, 100L, "StockName", false, true); assertThat(intent).isNotNull(); assertThat(intent.getComponent().getClassName()).isEqualTo(StockMovementHistoryActivity.class.getName()); assertThat(intent.getLongExtra(Constants.PARAM_STOCK_CARD_ID, 0)).isEqualTo(100L); assertThat(intent.getStringExtra(Constants.PARAM_STOCK_NAME)).isEqualTo("StockName"); assertThat(intent.getBooleanExtra(Constants.PARAM_IS_KIT, false)).isEqualTo(true); }
public static Intent getIntentToMe(Context context, long stockCardId, String stockName, boolean isFromArchive, boolean isKit) { Intent intent = new Intent(context, StockMovementHistoryActivity.class); intent.putExtra(Constants.PARAM_STOCK_CARD_ID, stockCardId); intent.putExtra(Constants.PARAM_STOCK_NAME, stockName); intent.putExtra(Constants.PARAM_IS_FROM_ARCHIVE, isFromArchive); intent.putExtra(Constants.PARAM_IS_KIT, isKit); return intent; }
StockMovementHistoryActivity extends BaseActivity { public static Intent getIntentToMe(Context context, long stockCardId, String stockName, boolean isFromArchive, boolean isKit) { Intent intent = new Intent(context, StockMovementHistoryActivity.class); intent.putExtra(Constants.PARAM_STOCK_CARD_ID, stockCardId); intent.putExtra(Constants.PARAM_STOCK_NAME, stockName); intent.putExtra(Constants.PARAM_IS_FROM_ARCHIVE, isFromArchive); intent.putExtra(Constants.PARAM_IS_KIT, isKit); return intent; } }
StockMovementHistoryActivity extends BaseActivity { public static Intent getIntentToMe(Context context, long stockCardId, String stockName, boolean isFromArchive, boolean isKit) { Intent intent = new Intent(context, StockMovementHistoryActivity.class); intent.putExtra(Constants.PARAM_STOCK_CARD_ID, stockCardId); intent.putExtra(Constants.PARAM_STOCK_NAME, stockName); intent.putExtra(Constants.PARAM_IS_FROM_ARCHIVE, isFromArchive); intent.putExtra(Constants.PARAM_IS_KIT, isKit); return intent; }  }
StockMovementHistoryActivity extends BaseActivity { public static Intent getIntentToMe(Context context, long stockCardId, String stockName, boolean isFromArchive, boolean isKit) { Intent intent = new Intent(context, StockMovementHistoryActivity.class); intent.putExtra(Constants.PARAM_STOCK_CARD_ID, stockCardId); intent.putExtra(Constants.PARAM_STOCK_NAME, stockName); intent.putExtra(Constants.PARAM_IS_FROM_ARCHIVE, isFromArchive); intent.putExtra(Constants.PARAM_IS_KIT, isKit); return intent; }  static Intent getIntentToMe(Context context, long stockCardId, String stockName,
                                       boolean isFromArchive, boolean isKit); }
StockMovementHistoryActivity extends BaseActivity { public static Intent getIntentToMe(Context context, long stockCardId, String stockName, boolean isFromArchive, boolean isKit) { Intent intent = new Intent(context, StockMovementHistoryActivity.class); intent.putExtra(Constants.PARAM_STOCK_CARD_ID, stockCardId); intent.putExtra(Constants.PARAM_STOCK_NAME, stockName); intent.putExtra(Constants.PARAM_IS_FROM_ARCHIVE, isFromArchive); intent.putExtra(Constants.PARAM_IS_KIT, isKit); return intent; }  static Intent getIntentToMe(Context context, long stockCardId, String stockName,
                                       boolean isFromArchive, boolean isKit);  }