Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag for India asked on

how to mock the value of pass reference method

is it possible to assign some value to pass by references method in mockito unit test

eg:

test(input,input1);
i   need to change the value of input after return  ? is that possible??
* JUnitJava* Spring

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon
CEHJ

What types are those parameters?
Sathish David Kumar N

ASKER
it our own class parameter ..
our meta data
example

process(processHelper);
ASKER CERTIFIED SOLUTION
CEHJ

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
CEHJ

:)
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy