michaelklotz
4/30/2014 - 3:41 PM

Groovy mock a method with no parameters example

Groovy mock a method with no parameters example

def propertyRefObjectFactory = [
                     getObjectInstance: {Object objNew, Name nameNew, String suffixValue, Context nameCtx, Hashtable<?, ?> properties ->
                            testDataSource
                     }
              ]  as PropertyReferenceObjectFactory