I have the following scenario in Spring :
public class ClassA{
@Autowired
private ClassB classB;
}
I'm using (Autowiring to be more precise) ClassA
in my Test class. But what I'd like to do somehow is to modify ClassB
just for my Junit, so with that, When ClassA
is autowired in my test class, it loads the modified ClassB
(instead of the original one).
Is there a way to achive that?