Instantly share code, notes, and snippets.

Embed
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();
retirementAllocator.today = 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