Need to set the @Value
of the service class using power mockito
not using Mockito.
Tried to set the value using Reflection.utils(class , name , value)
it did not work , Since the class was using PowerMockRunner.class
.
@Value("#'{test.codes}'")
private List<String> testList;
application-yml
test:
codes:005