3

Keep getting this error on IntelliJ

Cannot resolve symbol 'core' for the following import

import static com.github.tomakehurst.wiremock.core.WireMockConfiguration.wireMockConfig

Not entirely sure why. The following code also shows an error.

Code:

wireMockServer = new WireMockServer(wireMockConfig().port(port));

Error:

Cannot resolve method 'wireMockConfig()'

Stupid check anyone? Thanks.

Mohammad
  • 134
  • 2
  • 10

1 Answers1

5

WireMock is distributed in two flavours - a standard JAR containing just WireMock, and a standalone fat JAR containing WireMock plus all its dependencies

<dependency>
    <groupId>com.github.tomakehurst</groupId>
    <artifactId>wiremock</artifactId>
    <version>2.9.0</version>
</dependency>

http://wiremock.org/docs/getting-started/

Xelian
  • 16,680
  • 25
  • 99
  • 152