Closed dankurka closed 9 years ago
Is this a GWTTestCase? If not, the error is expected.
Reported by t.broyer
on 2012-04-04 16:37:05
Ahh so the test class has to extend GWTTestCase?
Reported by tdespenza
on 2012-04-04 18:16:38
Yes. See https://developers.google.com/web-toolkit/doc/latest/DevGuideTesting
But that was already the case in 1.7
Reported by t.broyer
on 2012-04-04 23:12:13
AsDesigned
Thank you so much.
Reported by tdespenza
on 2012-04-05 13:07:07
Please reconsider the "AsDesigned" stand point. Up until gwt 2.4.0 it was very much
possible (and easy and fast) to create standard junit (not derived from GWTTestCase)
test for classes extending Composite. This allowed for the use of mock frameworks
such as Mockito to test BDD style interactions.
Granted, proper separation of concerns (e.g. MVP) puts the real testing elsewhere but
it was nice to be able to test UI behaviors that don't belong in the presenter without
the speed penalty of a gwt test case.
Reported by sbdaaaaaaave
on 2012-09-06 22:41:58
With the introduction of IsWidget, Composite has become rather moot.
See also https://groups.google.com/d/topic/google-web-toolkit-contributors/k6vUNULtDGs/discussion
And well, this is really "as designed", you were just lucky that it worked before for
COmposite, but you knew you shouldn't have relied on it.
Reported by t.broyer
on 2012-09-07 05:40:22
Yeah, yeah. I don't disagree. Thanks.
Reported by sbdaaaaaaave
on 2012-09-07 16:11:04
Originally reported on Google Code with ID 7300
Reported by
tdespenza
on 2012-04-04 16:28:07