Closed mehiatt closed 1 year ago
"MockServer" is not a production class, it's part of Unirest's test suite. If you want to use the Unirest mocking library see https://github.com/Kong/unirest-java/tree/main/unirest-mocks#usage
What documentation did you see that said you should be able to do that? Unirest has no native support for Mockito that would allow that
I was trying to mock the unirest request:
However I can't import MockServer. I have tried serveral maven imports in pom.xml including:
and I can't import MockServer from any of them. Tried two different IDEs as well (Eclipse and IntelliJ).
Based on the examples I have found online and in the docs, one of these imports should be working.