@Test public void shouldGetNullCustomPropsFromEmptyKeyValues() { StockCardEntry entry = new StockCardEntry(new StockCard(), StockCardEntryType.ADJUSTMENT, 1L, null, null); Map<String, String> customProps = entry.getCustomProps(); assertNull(customProps); }
public Map<String, String> getCustomProps() { if (null == strategy) strategy = new LatestSyncedStrategy(); Map<String, String> customProps = StockManagementUtils.getKeyValueAggregate(keyValues, strategy); return customProps.isEmpty() ? null : customProps; }
LotOnHand extends BaseModel { public Map<String, String> getCustomProps() { if (null == strategy) strategy = new LatestSyncedStrategy(); Map<String, String> customProps = StockManagementUtils.getKeyValueAggregate(keyValues, strategy); return customProps.isEmpty() ? null : customProps; } }
LotOnHand extends BaseModel { public Map<String, String> getCustomProps() { if (null == strategy) strategy = new LatestSyncedStrategy(); Map<String, String> customProps = StockManagementUtils.getKeyValueAggregate(keyValues, strategy); return customProps.isEmpty() ? null : customProps; } private  LotOnHand(Lot lot, StockCard stockCard); }
LotOnHand extends BaseModel { public Map<String, String> getCustomProps() { if (null == strategy) strategy = new LatestSyncedStrategy(); Map<String, String> customProps = StockManagementUtils.getKeyValueAggregate(keyValues, strategy); return customProps.isEmpty() ? null : customProps; } private  LotOnHand(Lot lot, StockCard stockCard); Map<String, String> getCustomProps(); void addToQuantityOnHand(long quantity); static final LotOnHand createZeroedLotOnHand(Lot lot, StockCard stockCard); }
LotOnHand extends BaseModel { public Map<String, String> getCustomProps() { if (null == strategy) strategy = new LatestSyncedStrategy(); Map<String, String> customProps = StockManagementUtils.getKeyValueAggregate(keyValues, strategy); return customProps.isEmpty() ? null : customProps; } private  LotOnHand(Lot lot, StockCard stockCard); Map<String, String> getCustomProps(); void addToQuantityOnHand(long quantity); static final LotOnHand createZeroedLotOnHand(Lot lot, StockCard stockCard);  }