-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get RESTMock to work with external libraries of RESTapi #68
Comments
First things first:
|
I thought it is the same thing, but I definitely will try it with both the dependencies and the
does that mean i need to implement them in the main Application itself? |
the best way to understand this is to take a look into in this dagger module, we build the retrofit object being used across the whole app. As you can see, there is a constructor parameter specifying the baseUrl. This one is being created in In order to be able to specify different and have it specified within your |
@andrzejchm Could you expand README tutorial with above steps? It could be helpful for the new RESTMock users. |
This is already a part of the readme as |
Hi, first of all I really admire the simplicity.
but somehow I find it difficult to implement in my project.
so my project consist of multiple libraries in which consist of multiple api call from each Library.
I've followed all the guide given but still unable to mock the rest data (the RESTMock doesn't intercept the API call)
exclude because of some conflict of versioning.
In my test:
Above are some part of the code, I'm using espresso as you can notice in my gradle. when I run the code, the logcat still showing me that it points to my backend server. instead of
RESTMockServer.getUrl()
Is there anything I missed here? Sorry still new in this
The text was updated successfully, but these errors were encountered: