We help IT Professionals succeed at work.

how to mock the value of pass reference method

162 Views
Last Modified: 2018-08-26
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

CERTIFIED EXPERT
Top Expert 2016

Commented:
What types are those parameters?
CERTIFIED EXPERT

Author

Commented:
it our own class parameter ..
our meta data
example

process(processHelper);
CERTIFIED EXPERT
Top Expert 2016
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2016

Commented:
:)