Skip to content

Instantly share code, notes, and snippets.

@htrajan htrajan/
Last active Jun 28, 2018

What would you like to do?
public class AccountSavingsRecommenderIntegrationTest {
private static final LocalDate today = new LocalDate(2018, 6, 25);
private AccountSavingsRecommender getRecommender() {
AccountSavingsRecommender recommender = new AccountSavingsRecommender();
RetirementGoalSavingsAllocator retirementAllocator = new RetirementGoalSavingsAllocator(); = today;
RetirementAccountSelector accountSelector = new RetirementAccountSelector();
accountSelector.setAccountTypes(ImmutableList.of(Type.R_401_K, Type.IRA, Type.TAXABLE, Type.EXTERNAL_BROKERAGE));
retirementAllocator.accountSelector = accountSelector;
recommender.retirementAllocator = retirementAllocator;
HomeGoalSavingsAllocator homeAllocator = new HomeGoalSavingsAllocator();
// similarly, wire the homeAllocator and the other goal allocators
return recommender;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.