Package com.wesabe.api.accounts.entities

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


    private Interval interval = new Interval(date(2009, 1, 2), date(2009, 4, 1));
    private ImmutableMap<Interval,MonetarySummaryWithSplits> summaries;

    @Before
    public void setup() {
      final Account account = new Account("Checking", USD);

      final Txaction txaction = new Txaction(account, decimal("-30.00"), date(2009, 2, 13));
      txaction.setStatus(TxactionStatus.DELETED);

      final IntervalSummarizer summarizer = new IntervalSummarizer(new CurrencyExchangeRateMap());
View Full Code Here


    private Interval interval = new Interval(date(2009, 1, 2), date(2009, 4, 1));
    private ImmutableMap<Interval,MonetarySummaryWithSplits> summaries;

    @Before
    public void setup() {
      final Account account = new Account("Checking", USD);

      final Txaction txaction = new Txaction(account, decimal("-30.00"), date(2009, 2, 13));
      txaction.setStatus(TxactionStatus.DISABLED);

      final IntervalSummarizer summarizer = new IntervalSummarizer(new CurrencyExchangeRateMap());
View Full Code Here

    private Interval interval = new Interval(date(2009, 1, 2), date(2009, 4, 1));
    private ImmutableMap<Interval,MonetarySummaryWithSplits> summaries;

    @Before
    public void setup() {
      final Account account = new Account("Checking", USD);
      final Txaction txaction = new Txaction(account, decimal("-30.00"), date(2009, 2, 13));
      txaction.setTransferTxaction(new Txaction());

      final IntervalSummarizer summarizer = new IntervalSummarizer(new CurrencyExchangeRateMap());
View Full Code Here

    private Interval interval = new Interval(date(2009, 1, 2), date(2009, 4, 1));
    private ImmutableMap<Interval,MonetarySummaryWithSplits> summaries;

    @Before
    public void setup() {
      final Account account = new Account("Checking", USD);
      final Txaction txaction1 = new Txaction(account, decimal("-30.00"), date(2009, 2, 13));
      final Txaction txaction2 = new Txaction(account, decimal("-30.00"), date(2009, 2, 14));

      final IntervalSummarizer summarizer = new IntervalSummarizer(new CurrencyExchangeRateMap());
View Full Code Here

    private Interval interval = new Interval(date(2009, 1, 2), date(2009, 4, 1));
    private ImmutableMap<Interval,MonetarySummaryWithSplits> summaries;

    @Before
    public void setup() {
      final Account account = new Account("Checking", USD);
      final Txaction txaction = new Txaction(account, decimal("-30.00"), date(2009, 2, 13));
      txaction.addTag(new Tag("food"));

      final IntervalSummarizer summarizer = new IntervalSummarizer(new CurrencyExchangeRateMap());
      this.summaries = summarizer.summarize(ImmutableList.of(txaction), interval, IntervalType.MONTHLY, USD, null);
View Full Code Here

    private Set<Tag> filteredTags = ImmutableSet.of(workExpense, loan);
    private ImmutableMap<Interval,MonetarySummaryWithSplits> summaries;

    @Before
    public void setup() {
      final Account account = new Account("Checking", USD);
      final Txaction fullyFiltered = new Txaction(account, decimal("-30.00"), date(2009, 3, 13));
      fullyFiltered.addTag(workExpense);

      final Txaction partiallyFiltered = new Txaction(account, decimal("-30.00"), date(2009, 2, 13));
      partiallyFiltered.addTag(loan, decimal("-20.00"));
View Full Code Here

    private Account account;
    private Txaction txaction;
   
    @Before
    public void setup() {
      account = new Account("checking", USD);
      txaction = new Txaction(account, decimal("-34.22"), now());
      txaction.addTag(food);
      txaction.addTag(groceries);
    }
View Full Code Here

    private Account account;
    private Txaction txaction;
   
    @Before
    public void setup() {
      account = new Account("checking", USD);
      txaction = new Txaction(account, decimal("-34.22"), now());
      txaction.addTag(cash, decimal("-20.00"));
      txaction.addTag(groceries, decimal("-14.22"));
    }
View Full Code Here

    private Account account;
    private Txaction txaction;
   
    @Before
    public void setup() {
      account = new Account("checking", USD);
      txaction = new Txaction(account, decimal("34.22"), now());
      txaction.addTag(cash, decimal("20.00"));
      txaction.addTag(groceries, decimal("14.22"));
    }
View Full Code Here

    @Override
    @Before
    public void setup() throws Exception {
      super.setup();
     
      this.checking = new Account("Checking", USD);
     
      this.hierarchy = builder.build(
        ImmutableList.of(
          spent("400.00").from(checking).at("Whole Foods").on("food", "groceries").build(),
          spent("500.00").from(checking).at("Credit Card Payment").on("transfer", "creditcard").build(),
View Full Code Here

TOP

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

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.