For anybody doing the following:
// ** application.yml ** //
spring: main:
web-application-type: none
application:
name: App
wiremock:
server:
files: classpath:/__files
stubs: classpath:/mappings
// ** Application.class ** //
@SpringBootApplication
@AutoConfigureWireMock()
public class Application extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Bean
public Options wireMockOptions() throws IOException {
final WireMockConfiguration options = WireMockSpring.options();
options.port(8080);
return options;
}
}
You should note that the application properties "files" and "stubs" are not being set on the wiremock server, as you would expect from AutoConfigureWireMock.
Anyways, I've resolved the issue by reading the values from the configuration file manually, and adding them to my options object.
Thanks,
Kyle Shrader