public class RuleIdValidator implements ConstraintValidator<ValidRuleId,String> { @Autowired private RuleStore ruleStore; // Some other methods }
但是,如何在测试过程中模拟规则库?我不知道如何将我的模拟RuleStore注入Spring并进入自动布线系统.
谢谢
spring 3 autowiring and junit testing