diff --git a/README.md b/README.md index ac765c0..59dd02b 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,12 @@ class TodoControllerTests { @InjectWireMock("user-service") private WireMockServer wiremock; - - @Autowired - private Environment env; + + @Value("${user-client.url}") + private String wiremockUrl; // injects the base URL of the WireMockServer instance @Test void aTest() { - env.getProperty("user-client.url"); // returns a URL to WireMockServer instance wiremock.stubFor(...); } }