Last active
June 28, 2018 23:23
-
-
Save htrajan/d1e9bc0e0c215d8e4916b6874540b3ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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