@Test
@ProjectFiles(files = {"example.soy"}, inherit = false )
public void testGetPresentation_private() throws Exception {
LocalTemplateNameDef def = findElement("example.soy",
LocalTemplateNameDef.class,
".nondairy",
null);
ItemPresentation presentation = def.getPresentation();
assertNotNull(presentation);
assertEquals("example.soy", presentation.getLocationString());
assertEquals("example.soy.nondairy", presentation.getPresentableText());
Icon icon = presentation.getIcon(true);
assertTrue(icon instanceof RowIcon);
assertEquals(2, ((RowIcon)icon).getIconCount());
assertEquals(SoyIcons.TEMPLATE, ((RowIcon)icon).getIcon(0));
assertEquals(PlatformIcons.PRIVATE_ICON, ((RowIcon)icon).getIcon(1));
}
}