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

Martin Grigorov commented on WICKET-6397:
-----------------------------------------

I am not sure whether this method should be added to the API.
Then someone will ask for assertContentType(), assertContentLength(), etc.
assertThat(tester.getLastResponse().getStatus(), is(200)) is good enough, IMO !

> 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
>            Assignee: Andrea Del Bene
>            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.4.14#64029)

Reply via email to