How to fetch @Value during JUnit execution
Example:
public class Test {
@Value("${value}")
private String value;
}
How to fetch @Value during JUnit execution
Example:
public class Test {
@Value("${value}")
private String value;
}
@Value is a feature of Springboot.
These are your options:
@SpringBootTests.