You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Andrea Del Bene (JIRA)" <ji...@apache.org> on 2017/06/09 10:02:18 UTC

[jira] [Commented] (WICKET-6397) WicketTester should take resulting HTTP status into account

    [ https://issues.apache.org/jira/browse/WICKET-6397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16044241#comment-16044241 ] 

Andrea Del Bene commented on WICKET-6397:
-----------------------------------------

IMHO the right method should be 

{code}
public void assertLastResponseStatus(int httpStatus)
{code}

Getting the last response status is quite easy:

{code}
tester.getLastResponse().getStatus();
{code}


> WicketTester should take resulting HTTP status into account
> -----------------------------------------------------------
>
>                 Key: WICKET-6397
>                 URL: https://issues.apache.org/jira/browse/WICKET-6397
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Kamil
>            Priority: Minor
>
> WicketTester in addition to current method:
> {code}
> public void assertRenderedPage(Class<? extends Page> expectedRenderedPageClass)
> {code}
> should provide two additional ones:
> {code}
> public void assertRenderedPage(Class<? extends Page> expectedRenderedPageClass, int httpStatus)
> {code}
> and
> {code}
> public void assertRenderedPageStatus(int httpStatus)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)