|
From: Seth L. <se...@eh...> - 2004-06-03 00:20:57
|
-----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----- |