Using MockServer is not working

We are trying to use MockServer in a test case script like so:

  1. We have added library mockserver-netty-5.6.1-jar-with-dependencies.jar
  2. in the script we import the libraries:

import org.mockserver.integration.ClientAndServer
import org.mockserver.model

(intelisense recognizes them)
3. When actually running the test case we have an error stating:

/Test.prj/Scripts/REST%20examples/Simple%20examples/api-2-issue/Create%20issue/Create%20a%20new%20issue/Script1538639663709.groovy: 17: unable to resolve class org.mockserver.model
@ line 17, column 1.
import org.mockserver.mode

  1. if we comment that line, we receive another error
    Test Cases/REST examples/Simple examples/api-2-issue/Create issue/Create a new issue FAILED.
    java.lang.NoSuchFieldError: WRITE_BUFFER_WATER_MARK

We are thinking it might be related to the JRE version?



1 Like