Examples of SumOfMoneyPresenter


Examples of com.wesabe.api.accounts.presenters.SumOfMoneyPresenter

    private TagSummaryPresenter presenter;
    private Tag tag;
   
    @Before
    public void setup() throws Exception {
      this.presenter = new TagSummaryPresenter(new SumOfMoneyPresenter((new MoneyPresenter())));
     
      this.tag = new Tag("food");
     
      this.summary = new MonetarySummary(
        new SumOfMoney(money("3409.32", USD), 17),
View Full Code Here

Examples of com.wesabe.api.accounts.presenters.SumOfMoneyPresenter

    public void setup() throws Exception {
      this.food = new Tag("food");
     
      this.foodSummary = new MonetarySummary(new SumOfMoney(money("45.00", USD), 6), new SumOfMoney(Money.zero(USD), 0));
     
      this.presenter = new IntervalSummaryPresenter(new SumOfMoneyPresenter((new MoneyPresenter())));
     
      this.interval = new Interval(date(2006, 7, 1), date(2006, 8, 1));
     
      this.summary = new MonetarySummaryWithSplits(
        new SumOfMoney(money("3409.32", USD), 17),
View Full Code Here

Examples of com.wesabe.api.accounts.presenters.SumOfMoneyPresenter

    private SumOfMoneyPresenter presenter;
   
    @Before
    public void setup() throws Exception {
      this.moneyPresenter = new MoneyPresenter();
      this.presenter = new SumOfMoneyPresenter(moneyPresenter);
     
      this.sum = new SumOfMoney(money("32.54", USD), 20);
    }
View Full Code Here

Examples of com.wesabe.api.accounts.presenters.SumOfMoneyPresenter

    private TagHierarchy hierarchy;
   
    @Before
    public void setup() throws Exception {
      this.moneyPresenter = new MoneyPresenter();
      this.sumOfMoneyPresenter = new SumOfMoneyPresenter(moneyPresenter);
      this.presenter = new TagHierarchyPresenter(sumOfMoneyPresenter);
     
      this.restaurants = new Node(tag("restaurants"), new SumOfMoney(money("20.00", USD), 1), ImmutableList.<Node>of());
      this.groceries = new Node(tag("groceries"), new SumOfMoney(money("30.00", USD), 1), ImmutableList.<Node>of());
      this.food = new Node(tag("food"), new SumOfMoney(money("50.00", USD), 2), ImmutableList.of(restaurants, groceries));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.