Add a comment


Re: Dynamic Mock Testing

XMLEncoder or simply calling the toString method (as long as its implemented) on parameters would work just as well. You could also modify the AbstractMock and pass it an instance of the real class you are mocking in the constructor, and then, if the method isn't found in the mock, the proxy could call the real class. The possibilities are endless really! See JMock and EasyMock too though, they might be even more suited to your needs.

Re: Dynamic Mock Testing

HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
E-mail address
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).