I am currently trying to setup a good way to test my components in
isolation. I do not like the idea to create a Page for every component
setup.

So what I want is writing a simple Page with a single dynamic component.
Digging into the code I notice that we got a DynamicTemplateParser service
for parsing any resource and get a dynamic template.

So this looks like something I just need. Using a Junit Rule I will be able
to drive this Dynamic parsing process providing a constructed string based
HTML representation of the component template.

Now the question is can I do this with a page? I mean just a page using a
rendering command like the component. Thinking about it it would be better
to use a custom DynamicPage which parses its template based on a Page
parameter.

Does anyone have some ideas or remarks why this is (im)possible? Anyone
does this before?


Cheers,

Martin (Kersten),
Germany

Reply via email to