Package com.wesabe.api.accounts.entities

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


     
      this.filteredTags = mock(Set.class);
     
      this.account = mock(Account.class);
      when(account.getRelativeId()).thenReturn(1);
      this.accounts = new AccountList(account);
      when(context.getAccountDAO().findVisibleAccounts(Mockito.anyString())).thenReturn(accounts);

      this.txaction = mock(Txaction.class);
      this.filteredTxaction = mock(Txaction.class);
      when(context.getTxactionDAO().findTxactionsInDateRange(Mockito.anyCollection(), Mockito.any(Interval.class))).thenReturn(ImmutableList.of(txaction, filteredTxaction));
View Full Code Here


  public XmlsonObject show(@Context WesabeUser user,
      @Context Locale locale,
      @PathParam("currency") CurrencyParam currency,
      @QueryParam("include_archived") @DefaultValue("false") BooleanParam includeArchived) {
   
    final AccountList accounts = new AccountList(accountDAO.findAllAccountsByAccountKey(
      user.getAccountKey(),
      getStatuses(includeArchived.getValue())
    ));
   
    return presenter.present(accounts, currency.getValue(), locale);
View Full Code Here

TOP

Related Classes of com.wesabe.api.accounts.entities.AccountList

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.