Package com.wesabe.api.accounts.presenters

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


   
    @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));
      this.entertainment = new Node(tag("entertainment"), new SumOfMoney(money("50.00", USD), 1), ImmutableList.<Node>of());
View Full Code Here

TOP

Related Classes of com.wesabe.api.accounts.presenters.TagHierarchyPresenter

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.