« Return to Thread: [ANN] Testing Plugin 0.2 sneakily released

Re: [ANN] Testing Plugin 0.2 sneakily released

by j pimmel :: Rate this Message:

Reply to Author | View in Thread

Peter,

w00t! and great stuff

regarding the Constructor stuff.. Am curious what you r provided does .. We were running into a problem yesterday with MockFor not actually mocking the target classes constructor - but infact executing the real constructor (and we understand how this could be hard to avoid)...

Rather annoying when classes out of your control have huge gobs of logic ibn their constructor (eg: groovyws.WSClient!!!) grrr...

J

ps: to use this, do i re-install the plugin.. or assemble from source?

On Tue, Sep 23, 2008 at 11:30 AM, Peter Ledbrook <peter@...> wrote:
Hi,

I have released version 0.2 of the testing plugin. This doesn't
contain either the tag lib stuff or the URL mapping test classes, but
it does include:

* A bunch of bug fixes
* getAll() static method for domain classes
* More render() implementations for controllers
* Support for mocking command objects
* Added constructor and ".properties" based data binding
* ".errors" on domain classes and command objects is a real "Errors" instance
* save() method calls validate() and adds the new domain instance to
the list of test instances
* ".session" is now an implementation of HttpSession, not a map

svn HEAD contains support for "withFormat" in controllers and it has
basic support for testing tag libraries. Not well tested yet though.
Now all I need is some time to document this stuff.

Cheers,

Peter

--
Software Engineer
G2One, Inc.
http://www.g2one.com/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



 « Return to Thread: [ANN] Testing Plugin 0.2 sneakily released