Hello Jacques,
Jacques Le Roux <[email protected]> writes:
> I had a look at this idea but I finally gave up. I thought about creating
>
> public static Map testGroovy(Map<String, String> paramNames, String
> serviceName) {
> userLogin =
> EntityQuery.use(delegator).from('UserLogin').where('userLoginId',
> 'system').cache().queryOne()
> Map serviceCtx = paramNames.put("userLogin",
> EntityQuery.use(delegator).from('UserLogin').where('userLoginId',
> 'system').cache().queryOne())
> Map result = dispatcher.runSync(serviceName, serviceCtx)
> }
>
> And only pass params and service name, but EntityQuery is not yet available
> in base component when compiling.
What do you mean by “EntityQuery is not yet available in base component
when compiling”?
Can you provide a patch and the command you run to get to this failing
scenario?
> Anyway it would add much, just a cover function
>
> Le 03/10/2019 à 14:29, Jacques Le Roux a écrit :
>> BTW looking at OrderTests.groovy it seems we can refactor Groovy tests, a
>> lot of is common...
>>
--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37