44454647484950515253
@Autowired DealProcessor processor; @Test public void processesEquities() { Deal deal = new Deal(new Equity("Deutsche Bank")); Result result = processor.process(deal); assertThat(result.getFee(), is(new BigDecimal(10.5))); }
43444546474849505152
59606162636465666768
} @Test public void vmWareEquitiesIsFree() { Deal deal = new Deal(new Equity("VMware")); Result result = processor.process(deal); assertThat(result.getFee(), is(BigDecimal.ZERO)); }