Skip to content

Commit

Permalink
Fix unit tests for client performance as fees are handled differently…
Browse files Browse the repository at this point in the history
… now

Issue: #149
  • Loading branch information
buchen committed Jun 29, 2014
1 parent 47639ae commit 6e33e2b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -218,7 +218,8 @@ public void testCapitalGainsWithPartialSellDuringReportPeriodWithFees()
ClientPerformanceSnapshot snapshot = new ClientPerformanceSnapshot(client, startDate, endDate);

EnumMap<CategoryType, Category> result = snapshot.getCategoryMap();
assertEquals(1000 * 9 + (9900 - 10000), result.get(CategoryType.CAPITAL_GAINS).getValuation());
assertEquals(1000 * 9 + (9900 - 10000) + 1, result.get(CategoryType.CAPITAL_GAINS).getValuation());
assertEquals(1, result.get(CategoryType.FEES).getValuation());
}

}

0 comments on commit 6e33e2b

Please sign in to comment.