Skip to content

Commit 2b9dfda

Browse files
authored
Update README.md
1 parent b0ce1cb commit 2b9dfda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ If you wish to have a greater control over the response, you can pass the `MockR
389389
RESTMockServer.whenGET(pathContains("users/defunkt")).thenReturn(new MockResponse().setBody("").setResponseCode(401).addHeader("Header","Value"));
390390
```
391391

392-
#### Step 5: Request Matchers
392+
#### Step 3: Request Matchers
393393
You can either use some of the predefined matchers from `RequestMatchers` util class, or create your own. remember to extend from `RequestMatcher`
394394

395-
#### Step 6: Specify API Endpoint
395+
#### Step 4: Specify API Endpoint
396396
The most important step, in order for your app to communicate with the testServer, you have to specify it as an endpoint for all your API calls. For that, you can use the ` RESTMockServer.getUrl()`. If you use Retrofit, it is as easy as:
397397

398398
```java

0 commit comments

Comments
 (0)