Author Login
Post Reply
Lets take this particular case. In my Java code my 2 classes TransformData
and NamedCaches can have breakpoints attached.
So I can breakpoint in this getCacheData method in my java class
orig_code = caches.getCacheData("Cache Equity Identifiers Code", null,
instrument_id+"|"+schemeinfo);
I can see that in fact orig_code is returned. Then the next line, Groovy
code
if(orig_code != null && orig_code.equals(code)) {
tData.setSkipOutput(true)
should evl to true (I also saw the 'code' value while in that breakpoint
previously and know it matches.) Now I have no clue as to why it does not
eval to true, but I do know that my breakpoint on tData.setSkipOutput(true)
is not hit. So at this point I am trapped, I know the parameters are correct
but for reasons I cannot fathom the test must return false or throw an
Exception (which if it did I assume I would see it in my Java code that
invokes this Groovy script). How do other people test their Groovy script,
if they are not self contained with their own parameters?
Thx.
David
--
Sent from the groovy - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email