Tuesday, April 24, 2012

Can UI components be tested through JUnit/GWTTestCase?

Ok, I found some old messages (several years old) that says this
cannot be done.

However, when I look at:
https://developers.google.com/web-toolkit/doc/latest/DevGuideTesting#DevGuideJUnitSetUp

this seems to imply that you can actually test GUI items on a browser
with such tests. I might well be completely misinterpreting what it's
there for, though.

However, I'm baffled as to how to do so.

For example, I might normally put MyWidget into the RootPanel as
follows:

RootPanel.get().add(new MyWidget("Some text here"));


But how would I do this in a JUnit test case / GWTTestCase?

Thanks.

--
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