Hello,
  How you test the following snippet ?

  The following snippet is not following the Law of Demeter and I'm not 
sure that such usage is correct, because in your test if have to mock 
the display, the MyReusablePanel and the Display of MyReusablePanel.

Regards,
  Miroslav


Dave Pinn wrote:
> You would typically have one presenter and one view for each discrete
> part of the page. The idea is to componentise the parts of the page so
> that they can be re-used in a variety of contexts; for example: you
> might have a page navigation sub-panel that gets used on several
> pages.
>
> To re-use your panel do something like this:
>
>       public MyContainingPresenter(MyContainingPresenter.Display
> display, MyReusablePanel subPanel) {
>             ...
>             display.setSubPanel(subPanel.getDisplay().asWidget()).
>             ...
>       }
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to