Hi,
I would like to ask about your testing practice. I have few problem with
testing. Now I have simple T5 application with few pages and forms.
1) When I write page it's straightforward process I create components
and then compose from them page. But when I write test for one page for
each page component I have to write mock. I have to write component mock
behavior for each component usage. Component mocking is quite talkative.
T5 is component oriented framework so page is composed from components,
but testing as it's described in T5 tutorial is one procedure call.
2) When I test page action link and this link point to some page I have
to mock behavior of this destination page. Or better I can just call
method that mock behavior of this destination page. It works. But when
final page is changed than this action link test starts falling even if
test is correct just destination page is faulty.
Maybe my problem are caused by lack of information, if you know some T5
testing information I'll appreciated it.
regards
Jan
BTW PageTester class seems to me not fully finished. Method for testing
links with parameter like "showItem?t:ac=22" is not yet implemented. And
at line 304 shouldn't be:
decodeParametersIntoRequest(path.substring(comma + 1));
there should be:
decodeParametersIntoRequest(linkPath.substring(comma + 1));
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org