I have a service with an attribute like this:
@Autowired
@Qualifier("test")
private String test;
This attribute come from context xml file.
I become nothing in unit test, probably that a correct behavior in unit test. But can I mock this attribute to become a value?
for example:
when(test).thenReturn("a string");
Thanks Regards