Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WireMock 2.0-beta Android Support #330
With the following change, WireMock 2.0-beta successfully runs on Android.
I was able to successfully create an ActivityInstrumentationTestCase2 using the @RunWith(AndroidJUnit4.class) class level annotation and the following WireMockRule:
@Rule public WireMockRule wireMockRule = new WireMockRule();
I did a lot of combinations of dependencies as I tried to figure out how to make this work, but when I simplified it down, the modification to make this work on android was VERY simple. Thanks @tomakehurst for the great work.
Usage In Validation
I'm trying to integrate this with another application I have using the Android
Repo containing 2 Android WireMock tests as well as a test for "MockWebServer" for okhttp.
One WireMock test for
@tomakehurst - I can look into another PR at some point in the future, but don't have the time right now.