Sunday, August 28, 2011

Re: How to do JUnit testing for a composite widget created using UIBinder?

IMO You should not do unit testing for views. All you could test is what, that they look ok? Or they respond to app events? Or rather generate an app event, based on user input? While those cases are indeed valid, testing them by hand is very very easy. You should however have a Presenter/Mediator for that specific view, which acts in-between that view and the rest of application. It makes more sense to test that that presenter/mediator, making sure it works within app's context (generating events, responding to events).

But again, this is just my opinion.
My 2 cents,
Alex.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/XCww5sb_MAAJ.
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.

No comments:

Post a Comment