Saturday, June 23, 2012

How to test presenter with overlay type involved?

This question has been asked
here:https://groups.google.com/d/topic/google-web-toolkit/DREa11neMa4?authuser=0&fromgroups,My question is:If a model must be created in a presenter,How to do?

1,JsoModel model=new JsoModelImpl();

No test-friend due to JSNI involved in JsoModelImpl.


2,JsoModel model=factoryAsField.createModel(); //factoryAsField is
injected

if take this way,too many factories must be created and injected.

Any simple and test-friend way to solve this problem?



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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate