I'm using Spring and I want to create unit test using Spock. This is my class
@Service
public class TestService{
@Value("${test.path:}")
private String path;
}
Is it any way to mock this variable in Spock tests without runing spring context?