You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by David Blevins <da...@visi.com> on 2009/01/18 13:21:37 UTC

User Blog: OpenEJB Resource injection for Unit Testing

Quintin Beukes has written another great blog post on an advanced  
OpenEJB testing technique.  He's created quite an interesting  
technique for allowing the use of alternate deployment descriptors for  
testing than those used for production.

The post details using NetBeans with a bit of Ant script to have a set  
of "test" META-INF files copied over the production ones for testing.   
The technique could work equally well in plain Ant, or in Maven using  
the "process-test-resources" lifecycle phase to run a similar Ant  
script, or in any environment that allows for a "pre-test" hook.

http://qbeukes.blogspot.com/2008/12/openejb-resource-injection-for-unit.html

Gets the creative juices flowing on how such a feature could be added  
to OpenEJB directly.  Could be a nice addition to the next release.   
Feel free to throw a "+1" if that would be useful to you.

-David