| com.opensymphony.xwork.XWorkTestCase com.opensymphony.webwork.views.sitemesh.ApplyDecoratorBeanTest
ApplyDecoratorBeanTest | public class ApplyDecoratorBeanTest extends XWorkTestCase (Code) | | author: tmjee version: $Date$ $Id$ |
Method Summary | |
protected void | setUp() | protected void | tearDown() | public void | testApplyDecorator() A simple test case that test when teh applydecorator tag is used with
name and page attribute, of which name is to be the name of the decorator
while page is the page to be decorated.
It basically just test that if we get a sitemesh Page object it's properties eg.
head, title, body, page.properties etc. |
testApplyDecorator | public void testApplyDecorator() throws Exception(Code) | | A simple test case that test when teh applydecorator tag is used with
name and page attribute, of which name is to be the name of the decorator
while page is the page to be decorated.
It basically just test that if we get a sitemesh Page object it's properties eg.
head, title, body, page.properties etc. is put into the freemarker model
generated by FreemarkerManager, before the Freemarker template is processed.
It doesn't test methods hook like
- getFreemarkerTemplate
- parsePageFromContent
- parsePageFromAbsoluteUrl
- parsePageFromRelativeUrlPath
- getSitemeshFactory
- getPageParser
- getDecoratorMapper
- deduceLocale
- createModel
cause they belongs to Sitemesh and FreemarkerManager, not really
related to ApplyDecoratorBean.
throws: Exception - |
|
|