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

Kamil commented on WICKET-6435:
-------------------------------

[~mgrigorov], [~Jezza]

I see that you added "assertExist" and "assertAbsent"

Wouldn't it be better to have one of these pairs:

"assertPresent / assertAbsent" or "assertExist / assertNotExist"

?

> WicketTester should provide assertExists and assertNotExists methods
> --------------------------------------------------------------------
>
>                 Key: WICKET-6435
>                 URL: https://issues.apache.org/jira/browse/WICKET-6435
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Kamil
>            Assignee: Martin Grigorov
>            Priority: Major
>             Fix For: 8.2.0, 9.0.0
>
>
> BaseWicketTester has:
> {code}
> private Component assertExists(final String path)
> {code}
> which is unfortunately private and doesn't provide contrary method.
> These methods are very important if you want to properly test code which is 
> using Fragments: one Fragment is being added at time (exist) while another is 
> not added (notExist)
> Could you please make assertExists public and add assertNotExists method?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to