Package de.olivergierke.whoops.core

Examples of de.olivergierke.whoops.core.Deal


  @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)));
  }
View Full Code Here


  }

  @Test(expected = UnsupportedInstrumentException.class)
  public void handlesUnsupportedInstrument() {

    Deal deal = new Deal(new UnsupportedInstrument());
    Result result = processor.process(deal);

    assertThat(result.getFee(), is(new BigDecimal(0.0)));
  }
View Full Code Here

  @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)));
  }
View Full Code Here

  }

  @Test(expected = UnsupportedInstrumentException.class)
  public void handlesUnsupportedInstrument() {

    Deal deal = new Deal(new UnsupportedInstrument());
    processor.process(deal);
  }
View Full Code Here

  }

  @Test
  public void vmWareEquitiesIsFree() {

    Deal deal = new Deal(new Equity("VMware"));
    Result result = processor.process(deal);

    assertThat(result.getFee(), is(BigDecimal.ZERO));
  }
View Full Code Here

TOP

Related Classes of de.olivergierke.whoops.core.Deal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.