throw io exception if template is not parse able

This commit is contained in:
Sebastian Sdorra
2012-08-18 13:52:17 +02:00
parent 6cae6a8910
commit 9de33362bd
7 changed files with 159 additions and 5 deletions

View File

@@ -69,6 +69,14 @@ public abstract class TemplateEngineTestBase
//~--- get methods ----------------------------------------------------------
/**
* Method description
*
*
* @return
*/
public abstract String getDefectTemplateResource();
/**
* Method description
*
@@ -79,6 +87,21 @@ public abstract class TemplateEngineTestBase
//~--- methods --------------------------------------------------------------
/**
* Method description
*
*
* @throws IOException
*/
@Test(expected = IOException.class)
public void testGetDefectTemplate() throws IOException
{
ServletContext context = mock(ServletContext.class);
TemplateEngine engine = createEngine(context);
engine.getTemplate(getDefectTemplateResource());
}
/**
* Method description
*