Skip to content

Instantly share code, notes, and snippets.

@htrajan
Last active June 28, 2018 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save htrajan/d1e9bc0e0c215d8e4916b6874540b3ab to your computer and use it in GitHub Desktop.
Save htrajan/d1e9bc0e0c215d8e4916b6874540b3ab to your computer and use it in GitHub Desktop.
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