Populating Spring @Value during Unit Test
I’m trying to write a Unit Test for a simple bean that’s used in my program to validate forms. The bean is annotated with @Component and has a class variable that is initialized using @Value(“${this.property.value}”) private String thisProperty; I would like to write unit tests for the validation methods inside this class, however, if possible … Read more