Package com.wesabe.api.accounts.presenters

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


    private NetWorthSummaryPresenter presenter;
    private ImmutableMap<Interval, Money> data;
   
    @Before
    public void setup() throws Exception {
      this.moneyPresenter = new MoneyPresenter();
      this.presenter = new NetWorthSummaryPresenter(moneyPresenter);
     
      this.data = ImmutableMap.of(
        new Interval(date(2007, 1, 1), date(2007, 2, 1)),
        money("400.00", USD)
View Full Code Here


    public void setup() throws Exception {
      this.taggedAmount = mock(TaggedAmount.class);
      when(taggedAmount.getTag()).thenReturn(new Tag("food"));
     
      this.presenter = new TaggedAmountPresenter(new MoneyPresenter());
    }
View Full Code Here

    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

    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

     
      this.attachmentPresenter = mock(AttachmentPresenter.class);
     
      this.taggedAmountPresenter = mock(TaggedAmountPresenter.class);
     
      presenter = new TxactionPresenter(new MoneyPresenter(), accountPresenter, merchantPresenter, attachmentPresenter, taggedAmountPresenter);
    }
View Full Code Here

    private SumOfMoney sum;
    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

    private Node food, entertainment, groceries, restaurants;
    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());
View Full Code Here

     
      this.financialInstRepresentation = new XmlsonObject("financial-institution");     
      this.financialInstPresenter = mock(FinancialInstPresenter.class);
      when(financialInstPresenter.present(Mockito.any(FinancialInst.class))).thenReturn(financialInstRepresentation);
     
      this.presenter = new AccountPresenter(new MoneyPresenter(), financialInstPresenter);     
    }
View Full Code Here

      when(group.getId()).thenReturn("checking");
      when(group.getAccounts()).thenReturn(accountList);
     
      this.exchangeRateMap = mock(CurrencyExchangeRateMap.class);
     
      this.moneyPresenter = new MoneyPresenter();
      this.accountReferencePresenter = new AccountReferencePresenter();
     
      this.presenter = new AccountGroupPresenter(exchangeRateMap, moneyPresenter, accountReferencePresenter);
    }
View Full Code Here

TOP

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

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.