Hello everyone, I have a fairly complex class that is almost entirely non-GWT specific aside from a single line that uses GWT's URL.decodeComponent method. While I rediscovered GWTMockUtilities and found EasyMock Class extension, I still can't think of any way to mock out the URL class. This is because the object is not instantiable (it's final) and it's a static method call.
I'm not sure if there's some performance reason behind making it a final class and using static methods, but it does make testing a pain. It forces me to use GWTTestCase instead of TestNG to test that particular class because of the single line of code. P.S. Does anyone mind if I write a little guide in the GWT Group about using GWTMockUtilities with EasyMock? -- Arthur Kalmenson --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
