[Jsptest-svn-commits] SF.net SVN: jsptest: [221] trunk/jsptest-acceptance/ jsptest-acceptance-jsp2
Status: Alpha
Brought to you by:
lkoskela
From: <lko...@us...> - 2008-04-16 17:56:54
|
Revision: 221 http://jsptest.svn.sourceforge.net/jsptest/?rev=221&view=rev Author: lkoskela Date: 2008-04-16 10:56:48 -0700 (Wed, 16 Apr 2008) Log Message: ----------- Formatting Modified Paths: -------------- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/java/net/sf/jsptest/acceptance/jsp/TestMockingTaglibs.java Modified: trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/java/net/sf/jsptest/acceptance/jsp/TestMockingTaglibs.java =================================================================== --- trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/java/net/sf/jsptest/acceptance/jsp/TestMockingTaglibs.java 2008-04-14 13:18:06 UTC (rev 220) +++ trunk/jsptest-acceptance/jsptest-acceptance-jsp20/src/test/java/net/sf/jsptest/acceptance/jsp/TestMockingTaglibs.java 2008-04-16 17:56:48 UTC (rev 221) @@ -27,37 +27,36 @@ */ public class TestMockingTaglibs extends JspTestCase { - protected String getJspPackageName() { - return "cust.om.tags"; - } + protected String getJspPackageName() { + return "cust.om.tags"; + } - protected String getWebRoot() { - return "src/test/resources/websrc"; - } + protected String getWebRoot() { + return "src/test/resources/websrc"; + } - /** - * This taglib class gets to replace the real thing. - */ - public static class MockCustomTag extends CustomTag { - public int doAfterBody() throws JspException { - try { - JspWriter out = pageContext.getOut(); - out.println("<pre>"); - out - .println("This content is coming from the mock CustomTag" - + " for timezone " + timezone); - out.println("</pre>"); - } catch (Exception e) { - throw new JspException(e); - } - return TagSupport.EVAL_PAGE; - } - } + /** + * This taglib class gets to replace the real thing. + */ + public static class MockCustomTag extends CustomTag { + public int doAfterBody() throws JspException { + try { + JspWriter out = pageContext.getOut(); + out.println("<pre>"); + out.println("This content is coming from the mock CustomTag" + + " for timezone " + timezone); + out.println("</pre>"); + } catch (Exception e) { + throw new JspException(e); + } + return TagSupport.EVAL_PAGE; + } + } - public void testRenderingJspUsingCustomTaglibs() throws Exception { - substituteTaglib("custom", MockCustomTag.class); - get("/taglibs/custom-taglib.jsp"); - output().shouldContain( - "This content is coming from the mock CustomTag"); - } + public void testRenderingJspUsingCustomTaglibs() throws Exception { + substituteTaglib("custom", MockCustomTag.class); + get("/taglibs/custom-taglib.jsp"); + output() + .shouldContain("This content is coming from the mock CustomTag"); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |