+1 - would be super helpful. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com
o:801.649.6594 f:801.649.6595 On Aug 18, 2009, at 12:05 AM, snowc wrote:
Hi Bob, The mocking code sounds great. Would you be happy to share? Bob Morley wrote:We typically execute Ofbiz from Eclipse and some people have reported that the hot-swapping works fairly well. (Usually we do not run an ant build until right before check-in and then just to ensure we are compiling andavoiding classpath issues).The approach I often take is to write my unit test in conjunction with theservice implementation I am working on. I have added some mockingcapabilities in our Ofbiz installation, so I can avoid starting up thecontainer at all and still exercise all of the logic in the service method. Result is usually a sub-second unit test. Naturally anintegration test would require container start-up and a reasonably heavypenalty.Another approach others have used is to write the service method in groovy and once working convert this into java. From memory there is really only a single sample of a groovy implemented service, and when I went to do there there was at least one bug I had to resolve. But this is a feasibleway and the groovy is quite a bit like java. :) - Bob Ruth Hoffman-2 wrote:Hi Chris:I guess I'm just use to the inconvenience. :-( The other thing I do to try and minimize restart time is to comment out the components I mightnot be using. Ruth-- View this message in context: http://www.nabble.com/is-compile-and-ofbiz-restart-still-needed-for-java-changes--tp24971472p25019021.html Sent from the OFBiz - User mailing list archive at Nabble.com.
smime.p7s
Description: S/MIME cryptographic signature
