this.plugin = new TemplatePlugin();
}
@Test
public void testTemplatePluginSingleLoadDefaultDir() {
TemplateConfigurationInterface config = testTemplatePlugin(null);
TemplateDefI def = config.getDefinition("foo"); //$NON-NLS-1$
assertNotNull(def);
assertTrue(def.getPath().equals("xxx.jsp")); //$NON-NLS-1$
assertTrue(def.getPutParams().isEmpty());
def = config.getDefinition("bar"); //$NON-NLS-1$
assertNotNull(def);
assertTrue(def.getPath().equals("xxx.jsp")); //$NON-NLS-1$
Map<String, String> params = def.getPutParams();
assertTrue(params.size() == 1);
assertNotNull(params.get("bar-put")); //$NON-NLS-1$
assertTrue(params.get("bar-put").equals("yyy.jsp")); //$NON-NLS-1$ //$NON-NLS-2$
def = config.getDefinition("baz"); //$NON-NLS-1$
assertNotNull(def);
assertTrue(def.getPath().equals("xxx.jsp")); //$NON-NLS-1$
assertTrue(def.getPutParams().isEmpty());
}