SimpleIntimaciesContent extends AbstractSubBoxContent implements ListSubBoxContent { @Override public List<String> getPrintEntries() { List<String> printIntimacies = new ArrayList<>(); for (Intimacy intimacy : getModel().getEntries()) { String text = getTextForIntimacy(intimacy); printIntimacies.add(text); } return printIntimacies; } SimpleIntimaciesContent(Hero hero, Resources resources); @Override String getHeaderKey(); @Override boolean useNewLineForEachEntry(); @Override List<String> getPrintEntries();  }
@Test public void abbreviatesPositiveDefiningTieToPlusDT() throws Exception { resources.putString("Intimacies.Sheet.Outlook.Positive", "+"); resources.putString("Intimacies.Sheet.Strength.Defining", "D"); resources.putString("Intimacies.Sheet.Bond.Tie", "T"); createIntimacy("Intimacy", Positive, Defining, Tie); assertThat(content.getPrintEntries().get(0), is("Intimacy (+DT)")); }
@Test public void abbreviatesNegativeToMinus() throws Exception { resources.putString("Intimacies.Sheet.Outlook.Negative", "-"); createIntimacy("Intimacy", Negative, Defining, Tie); assertThat(content.getPrintEntries().get(0), containsString("-")); }
@Test public void abbreviatesMajorToMa() throws Exception { resources.putString("Intimacies.Sheet.Strength.Major", "Ma"); createIntimacy("Intimacy", Negative, Major, Tie); assertThat(content.getPrintEntries().get(0), containsString("Ma")); }
@Test public void abbreviatesMinorToMi() throws Exception { resources.putString("Intimacies.Sheet.Strength.Minor", "Mi"); createIntimacy("Intimacy", Negative, Minor, Tie); assertThat(content.getPrintEntries().get(0), containsString("Mi")); }
@Test public void abbreviatesPrincipleToP() throws Exception { resources.putString("Intimacies.Sheet.Bond.Principle", "P"); createIntimacy("Intimacy", Negative, Minor, Principle); assertThat(content.getPrintEntries().get(0), containsString("P")); }