Fix bug with stale state in http request factory

If we don't re-use an existing factory, the label doesn't change and
all the snippets get generated with the same identifier.

Remove explicit version from wiremock test

Add snippets attribute to build config

See gh-295
This commit is contained in:
Dave Syer
2017-02-01 17:52:07 +00:00
committed by Stephane Nicoll
parent c7953bf999
commit 6242df5b6e
3 changed files with 4 additions and 2 deletions

View File

@@ -39,6 +39,8 @@ public final class MockMvcClientHttpRequestFactoryTestExecutionListener
beanFactory.getBean(MockMvc.class));
beanFactory.registerSingleton("mockMvcClientHttpRequestFactory",
this.factory);
} else {
factory = beanFactory.getBean("mockMvcClientHttpRequestFactory", MockMvcClientHttpRequestFactory.class);
}
}