From: Tim P <ti...@us...> - 2010-02-19 19:49:18
|
Update of /cvsroot/webmacro/webmacro/test/unit/org/webmacro/template In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv16151/test/unit/org/webmacro/template Modified Files: TestSetpropsDirective.java Log Message: Current behaviour is correct Index: TestSetpropsDirective.java =================================================================== RCS file: /cvsroot/webmacro/webmacro/test/unit/org/webmacro/template/TestSetpropsDirective.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** TestSetpropsDirective.java 19 Feb 2010 01:04:13 -0000 1.8 --- TestSetpropsDirective.java 19 Feb 2010 19:48:56 -0000 1.9 *************** *** 38,42 **** } ! public void testSetpropsThrowsOnUnAllowedClass() throws Exception { String tmpl = "#setprops $e class=\"org.webmacro.WM\""; --- 38,42 ---- } ! public void testSetpropsDoesNotThrowIfUnconfigured() throws Exception { String tmpl = "#setprops $e class=\"org.webmacro.WM\""; *************** *** 44,48 **** tmpl += "}\n"; tmpl += "$e"; ! assertStringTemplateThrows(tmpl, WebMacroException.class); } --- 44,48 ---- tmpl += "}\n"; tmpl += "$e"; ! assertStringTemplateEquals(tmpl, "WebMacro(WebMacro.properties)"); } |