You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Johannes Schneider <ma...@cedarsoft.com> on 2009/07/22 23:51:06 UTC

Bug(?) with MiniMap

Hi,

I have a problem while trying to add parameters to a
BookmarkablePageLink. My second parameter is simply ignored.
I debugged a lot and could create that failing test.

Could anyone tell me what I am doing wrong?


Thanks,

Johannes



  String val0 =
"dfd034bdd539d9fc9cdd1c26cbaf99a808f840848c64c94b865045132be5a1cf";

    PageParameters pageParameters = new PageParameters( new ValueMap(
"0="+val0 + ",1=160" ) );
    MiniMap miniMap = new MiniMap( pageParameters, 2 );
    assertEquals( miniMap.size(), 2 );

    assertEquals( miniMap.get( "0" ), val0 );
    assertEquals( miniMap.get( "1" ), "val1" );

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Bug(?) with MiniMap

Posted by Johannes Schneider <ma...@cedarsoft.com>.
Aah, stop! Stupid! Made a obvious mistake within my test case...

Code too long today... Sorry.

Johannes Schneider wrote:
> Hi,
> 
> I have a problem while trying to add parameters to a
> BookmarkablePageLink. My second parameter is simply ignored.
> I debugged a lot and could create that failing test.
> 
> Could anyone tell me what I am doing wrong?
> 
> 
> Thanks,
> 
> Johannes
> 
> 
> 
>   String val0 =
> "dfd034bdd539d9fc9cdd1c26cbaf99a808f840848c64c94b865045132be5a1cf";
> 
>     PageParameters pageParameters = new PageParameters( new ValueMap(
> "0="+val0 + ",1=160" ) );
>     MiniMap miniMap = new MiniMap( pageParameters, 2 );
>     assertEquals( miniMap.size(), 2 );
> 
>     assertEquals( miniMap.get( "0" ), val0 );
>     assertEquals( miniMap.get( "1" ), "val1" );
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org