Package com.wesabe.api.accounts.analytics

Examples of com.wesabe.api.accounts.analytics.SumOfMoney


   
    @Before
    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),
        new SumOfMoney(money("2091.11", USD), 5),
        ImmutableMap.of(food, foodSummary)
      );
    }
View Full Code Here


    @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

    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());
     
      this.hierarchy = new TagHierarchy(ImmutableList.of(food, entertainment), new SumOfMoney(money("100.00", USD), 3));
    }
View Full Code Here

      this.presenter = new TagSummaryPresenter(new SumOfMoneyPresenter((new MoneyPresenter())));
     
      this.tag = new Tag("food");
     
      this.summary = new MonetarySummary(
        new SumOfMoney(money("3409.32", USD), 17),
        new SumOfMoney(money("2091.11", USD), 5)
      );
    }
View Full Code Here

    private Node root;
   
    @Before
    public void setup() throws Exception {
      this.food = new Tag("food");
      this.sum = new SumOfMoney(money("20.12", USD), 12);
      this.root = new Node(food, sum, ImmutableList.<Node>of());
    }
View Full Code Here

    private Node foodNode, restaurantNode, groceryNode;

    @Before
    public void setup() throws Exception {
      this.food = new Tag("food");
      this.foodSpending = new SumOfMoney(money("100.00", USD), 10);
      this.restaurants = new Tag("restaurants");
      this.restaurantSpending = new SumOfMoney(money("60.00", USD), 6);
      this.groceries = new Tag("groceries");
      this.grocerySpending = new SumOfMoney(money("40.00", USD), 4);

      this.restaurantNode = new Node(restaurants, restaurantSpending, ImmutableList.<Node>of());
      this.groceryNode = new Node(groceries, grocerySpending, ImmutableList.<Node>of());
      this.foodNode = new Node(food, foodSpending, ImmutableList.of(restaurantNode, groceryNode));
    }
View Full Code Here

    private Node foodNode;
   
    @Before
    public void setup() throws Exception {
      this.food = new Tag("food");
      this.foodSpending = new SumOfMoney(money("100.00", USD), 10);
      this.total = new SumOfMoney(money("100.00", USD), 10);
      this.foodNode = new Node(food, foodSpending, ImmutableList.<Node>of());
      this.hierarchy = new TagHierarchy(ImmutableList.of(foodNode), total);
    }
View Full Code Here

TOP

Related Classes of com.wesabe.api.accounts.analytics.SumOfMoney

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.