版本: 空手道1.3.1, Maven 3.8, Java 11
下面是我调用空手道测试的方法
@SpringBootTest
@ActiveProfiles(value = "${spring.profiles.active:dev}")
public class ControllerIntegrationTest {
@Value("${service-ui-rest.url}")
private String serviceUiRestUrl;
@Karate.Test
Karate testThis(){
System.setProperty("file.encoding", "UTF-8");
return Karate
.run("classpath:feature")
.systemProperty("service-ui-rest.url",serviceUiRestUrl)
.systemProperty("test.type","integration");
}
}
在调试过程中,我发现以下逻辑GET Call HttpClientFactory何时返回ApacheHttpClient::New
我想知道如何配置空手道以使用我拥有的:FeignClient或RestTemplate的Bean
我在https://github.com/gtnicol/karate-okhttp-signpost/blob/master/src/main/resources/karate-http.properties找到了类似的东西,但它使用的是空手道0.9.1
任何指点都将受到高度赞赏.