[
https://issues.apache.org/jira/browse/WICKET-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joni Freeman updated WICKET-226:
--------------------------------
Attachment: WICKET-226-patch.txt.gz
> WicketTester version which does not depend on junit
> ---------------------------------------------------
>
> Key: WICKET-226
> URL: https://issues.apache.org/jira/browse/WICKET-226
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.2.5, 1.3, 2.0
> Reporter: Joni Freeman
> Attachments: WICKET-226-patch.txt.gz
>
>
> WicketTester has a dependency to junit (mostly in its assert* methods). It
> would be nice for WicketTester to be more generic, so that it would be
> possible to use it with other unit test tools. The assert methods could, for
> instance, be methods which return Result object. Result contains a message
> and boolean evaluation. Example:
> class Result {
> private boolean evaluation;
> private String message;
> }
> void assertRenderedPage(Class expectedReneredPageClass) -> Result
> wasRenderedPage(Class expectedReneredPageClass)
> A junit specific JUnitWicketTester could extend the generic base class and
> provide junit style assertions as they are now implemented in WicketTester
> using the base class methods.
> void assertRenderedPage(Class expectedReneredPageClass) {
> Result result = wasRenderedPage(expectedReneredPageClass);
> Assert.true(result.evaluation(), result.message());
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira