|
From: Colin S. <col...@ex...> - 2004-06-03 01:49:08
|
W/regards to issues with EasyMock, you may also want to try jMock (jmock.codehaus.org). It's quite nice, and now at a 1.0 version. I find it nicer than EasyMock in some respects... Seth Ladd wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > In writing unit tests for my Controllers, I find I need to test the > initBinder method and test what I place inside the binder (via > registerCustomEditor). > > I tried mocking the DataBinder class w/ easymock + cglib extension, but > it would generate an NPE. The easymock list thinks this is a bug in > their code, though haven't heard from them since. > > Is there a reason not to move (at some point) DataBinder to an > interface? This would help with testing and mocks. Another option > would be to create a MockDataBinder and add it to the spring-mocks. > > Any thoughts? > > Thanks! > Seth > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3-nr1 (Windows XP) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFAvm7fKZsFSwtW+wIRAuH+AJ0SvEc4sh6P8qaRe2XwEKoDVrspPwCfSWz7 > tOxXVGKAnmqsVuKrUoYVQHo= > =2nLo > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > From Windows to Linux, servers to mobile, InstallShield X is the one > installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |