how to mock the value of pass reference method

Sathish David  Kumar N
Sathish David  Kumar N used Ask the Experts™
on
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??
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
What types are those parameters?
it our own class parameter ..
our meta data
example

process(processHelper);
Top Expert 2016
Commented:
If T is not a primitive type and not an immutable type then there will be no problem changing one of the members of T using its reference, but you can't change the reference itself
Top Expert 2016

Commented:
:)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial