示例#1
0
 @Test
 public void addDealTest() {
   deal = new Deal();
   deal.setCode("600004");
   deal.setDate(new Date());
   deal.setOpen(199);
   dealService.addDeal(deal);
 }
示例#2
0
  @Before
  public void initDeal() {
    deal = new Deal();
    deal.setCode("600004");
    deal.setCapitalization(4F);
    deal.setClose(3F);
    deal.setDate(new Date());
    deal.setHigh(5F);
    deal.setLow(2F);
    deal.setOpen(1F);
    deal.setTurnover(0.2F);
    deal.setVolume(2.2F);

    criteria = new DealQueryCriteria();
    criteria.setCode("600004");
    criteria.setStartDate("2015-02-01");
    criteria.setEndDate("2015-09-01");
  }