Examples of TxactionList


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

      cashUSD.setCurrency(USD);
      creditEUR.setCurrency(EUR);
      inject(Account.class, checkingUSD, "accountBalances", Sets.newHashSet(checkingUSDBalance, checkingUSDBalance2));
      inject(Account.class, creditEUR, "accountBalances", Sets.newHashSet(creditEURBalance));
     
      txactionList = new TxactionList(wholeFoodsUSD, starbucksEUR, checkingAtmWithdrawalUSD, starbucksUSD, cashAtmWithdrawalUSD, mixtGreensUSD);
    }
View Full Code Here

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

                                    .getTxactions());
    }
   
    @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.TxactionList

                        .getTxactions());
    }
   
    @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.TxactionList

                        .getTxactions());
    }
   
    @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.TxactionList

                        .getTxactions());
    }
   
    @Test
    public void itDoesNotIncludeOtherMerchantsInTheTotalCount() throws Exception {
      final TxactionList list = new TxactionListBuilder()
                      .setAccounts(new AccountList(checking, savings))
                      .setMerchantNames(ImmutableSet.of("Whole Foods"))
                      .setCurrency(USD)
                      .setCurrencyExchangeRateMap(exchangeRates)
                      .build(txactions);
      assertEquals(1, list.getTotalCount());
    }
View Full Code Here

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

      txactions = ImmutableList.of(untaggedStarbucks, interestEarned, taggedWholeFoods, transferToSavings, transferFromChecking);
    }

    @Test
    public void itIncludesAllTxactionsIfUneditedIsFalse() {
      final TxactionList list = new TxactionListBuilder()
                      .setAccounts(new AccountList(checking, savings))
                      .setUnedited(false)
                      .setCurrency(USD)
                      .setCurrencyExchangeRateMap(exchangeRates)
                      .build(txactions);
      assertEquals(5, list.getTotalCount());
    }
View Full Code Here

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

    }

    @Test
    public void itIncludesNonTransferTxactionsWithNoMerchantOrNoTagsIfUneditedIsTrue() {
      expectedTxactions = Lists.newArrayList(transferFromChecking, interestEarned, untaggedStarbucks);
      final TxactionList list = new TxactionListBuilder()
                      .setAccounts(new AccountList(checking, savings))
                      .setUnedited(true)
                      .setCurrency(USD)
                      .setCurrencyExchangeRateMap(exchangeRates)
                      .build(txactions);
      assertEquals(expectedTxactions, list.getTxactions());
    }
View Full Code Here

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

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

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

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

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

      txactions = ImmutableList.of(interestEarned, starbucks, wholeFoods);
    }

    @Test
    public void itReturnsTxactionsWithTheCorrectAmount() {
      final TxactionList list = new TxactionListBuilder()
                      .setAmount(decimal("-3.00"))
                      .setCurrency(USD)
                      .setCurrencyExchangeRateMap(exchangeRates)
                      .build(txactions);
      assertEquals(ImmutableList.of(starbucks), list.getTxactions());
    }
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.