Examples of AccountList


Examples of com.wesabe.api.accounts.entities.AccountList

    @Test
    public void itFiltersDeletedAndDisabledTransactions() throws Exception {
      assertEquals(Lists.newArrayList(starbucks, wholeFoods), new TxactionListBuilder()
                                    .setCurrency(USD)
                                    .setCurrencyExchangeRateMap(exchangeRates)
                                    .setAccounts(new AccountList(checking))
                                    .build(txactions)
                                    .getTxactions());
    }
View Full Code Here

Examples of com.wesabe.api.accounts.entities.AccountList

    @Test
    public void itDoesNotIncludeTheDeletedOrDisabledTransactionsInTheTotalCount() throws Exception {
      final TxactionList list = new TxactionListBuilder()
                      .setCurrency(USD)
                      .setCurrencyExchangeRateMap(exchangeRates)
                      .setAccounts(new AccountList(checking))
                      .build(txactions);

      assertEquals(2, list.getTotalCount());
    }
View Full Code Here

Examples of com.wesabe.api.accounts.entities.AccountList

    }

    @Test
    public void itReturnsTxactionsContainedByTheGivenAccounts() {
      assertEquals(checkingTxactions, new TxactionListBuilder()
                        .setAccounts(new AccountList(checking))
                        .setCurrency(USD)
                        .setCurrencyExchangeRateMap(exchangeRates)
                        .build(txactions)
                        .getTxactions());
    }
View Full Code Here

Examples of com.wesabe.api.accounts.entities.AccountList

    }
   
    @Test
    public void itDoesNotIncludeOtherAccountsInTheTotalCount() throws Exception {
      final TxactionList list = new TxactionListBuilder()
                    .setAccounts(new AccountList(checking))
                    .setCurrency(USD)
                    .setCurrencyExchangeRateMap(exchangeRates)
                    .build(txactions);
      assertEquals(2, list.getTotalCount());
    }
View Full Code Here

Examples of com.wesabe.api.accounts.entities.AccountList

    @Test
    public void itReturnsTxactionsContainedByTheGivenAccounts() {
      assertEquals(foodTxactions, new TxactionListBuilder()
                        .setTags(ImmutableSet.of(food))
                        .setAccounts(new AccountList(checking, savings))
                        .setCurrency(USD)
                        .setCurrencyExchangeRateMap(exchangeRates)
                        .build(txactions)
                        .getTxactions());
    }
View Full Code Here

Examples of com.wesabe.api.accounts.entities.AccountList

   
    @Test
    public void itDoesNotIncludeOtherTagsInTheTotalCount() throws Exception {
      final TxactionList list = new TxactionListBuilder()
                      .setTags(ImmutableSet.of(food))
                      .setAccounts(new AccountList(checking, savings))
                      .setCurrency(USD)
                      .setCurrencyExchangeRateMap(exchangeRates)
                      .build(txactions);
      assertEquals(2, list.getTotalCount());
    }
View Full Code Here

Examples of com.wesabe.api.accounts.entities.AccountList

   
    @Test
    public void itDoesNotCalculateARunningTotalBalance() throws Exception {
      assertNull(new TxactionListBuilder()
                .setTags(ImmutableSet.of(food))
                .setAccounts(new AccountList(checking, savings))
                .setCurrency(USD)
                .setCurrencyExchangeRateMap(exchangeRates)
                .build(txactions)
                .get(0).getBalance());
    }
View Full Code Here

Examples of com.wesabe.api.accounts.entities.AccountList

   
    @Test
    public void itDoesNotCalculateARunningTotalBalance() throws Exception {
      assertNull(new TxactionListBuilder()
                .setCalculateBalances(false)
                .setAccounts(new AccountList(checking, savings))
                .setCurrency(USD)
                .setCurrencyExchangeRateMap(exchangeRates)
                .build(txactions)
                .get(0).getBalance());
    }
View Full Code Here

Examples of com.wesabe.api.accounts.entities.AccountList

    }

    @Test
    public void itReturnsTxactionsForTheGivenMerchants() {
      assertEquals(expectedTxactions, new TxactionListBuilder()
                        .setAccounts(new AccountList(checking, savings))
                        .setMerchantNames(ImmutableSet.of("Whole Foods"))
                        .setCurrency(USD)
                        .setCurrencyExchangeRateMap(exchangeRates)
                        .build(txactions)
                        .getTxactions());
View Full Code Here

Examples of com.wesabe.api.accounts.entities.AccountList

   
    @Test
    public void itSumsAccountBalancesIntoASingleTotal() throws Exception {
      assertEquals(
        money("15488.41", USD),
        new AccountList(accounts).getTotal(USD, exchangeRates)
      );
    }
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.