Package com.wesabe.api.accounts.entities

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


    final Account account = new Account("checking", USD);
    final Txaction txaction = new Txaction(account, decimal("-34.22"), now());
   
    @Test
    public void itAddsATaggedAmountToTheTransaction() throws Exception {
      final TaggedAmount foodAmount = txaction.addTag(food);
      assertEquals(ImmutableList.of(foodAmount), txaction.getTaggedAmounts());
    }
View Full Code Here


      assertEquals(ImmutableList.of(foodAmount), txaction.getTaggedAmounts());
    }
   
    @Test
    public void itAddsASplitTaggedAmountToTheTransaction() throws Exception {
      final TaggedAmount splitAmount = txaction.addTag(food, decimal("-30.00"));
      assertEquals(ImmutableList.of(splitAmount), txaction.getTaggedAmounts());
    }
View Full Code Here

      assertEquals(ImmutableList.of(starbucks), list.getTxactions());
    }
   
    @Test
    public void itReturnsTxactionsWithTagNamesContainingTheQuery() throws Exception {
      inject(Txaction.class, starbucks, "taggedAmounts", ImmutableList.of(new TaggedAmount(starbucks, new Tag("snack"), null)));
     
      final TxactionList list = buildTxactionList("Snack");
      assertEquals(ImmutableList.of(starbucks), list.getTxactions());
    }
View Full Code Here

TOP

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

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.