Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class AccountSavingsRecommender {
@Inject RetirementGoalSavingsAllocator retirementAllocator;
@VisibleForTesting
Map<Goal, Double> computePvByGoal(Collection<Goal> goals) {...}
……
@VisibleForTesting
Map<Goal, Double> allocateSavingsToGoals(
double savingsToAllocate,
Map<Goal, Double> savingsNeededByGoal) {...}
}
public class AccountSavingsRecommenderTest {
@Test
public void computePvByGoal_retirement() {...}
@Test
public void computePvByGoal_home() {...}
@Test
public void allocateSavingsToGoals_noSavingsToAllocate() {...}
@Test
public void allocateSavingsToGoals_excessSavingsToAllocate() {...}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment