Fix errors in readme
This commit is contained in:
parent
73b961eec9
commit
a906fba2ab
2 changed files with 5 additions and 13 deletions
10
README.md
10
README.md
|
@ -15,8 +15,8 @@ java -jar mockserver-<VERSION>-jar-with-dependencies.jar [PORT]
|
|||
## Create mock on server via client
|
||||
|
||||
```
|
||||
ControlServerClient controlServerClient = new ControlServerClient('localhost', <PORT>)
|
||||
controlServerClient.addMock(new AddMockRequestData(
|
||||
RemoteMockServer remoteMockServer = new RemoteMockServer('localhost', <PORT>)
|
||||
remoteMockServer.addMock(new AddMockRequestData(
|
||||
name: '...',
|
||||
path: '...',
|
||||
port: ...,
|
||||
|
@ -72,7 +72,7 @@ Response with error message if failure:
|
|||
Via client:
|
||||
|
||||
```
|
||||
List<MockEvent> mockEvents = controlServerClient.peekMock('...')
|
||||
List<MockEvent> mockEvents = remoteMockServer.peekMock('...')
|
||||
```
|
||||
|
||||
Via sending POST request to localhost:<PORT>/serverControl
|
||||
|
@ -126,7 +126,7 @@ Response with error message if failure:
|
|||
Via client:
|
||||
|
||||
```
|
||||
List<MockEvent> mockEvents = controlServerClient.removeMock('...')
|
||||
List<MockEvent> mockEvents = remoteMockServer.removeMock('...')
|
||||
```
|
||||
|
||||
Via sending POST request to localhost:<PORT>/serverControl
|
||||
|
@ -181,7 +181,7 @@ Response with error message if failure:
|
|||
Via client:
|
||||
|
||||
```
|
||||
List<RegisteredMock> mocks = controlServerClient.listMocks()
|
||||
List<RegisteredMock> mocks = remoteMockServer.listMocks()
|
||||
```
|
||||
|
||||
or via sending GET request to localhost:<PORT>/serverControl
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
#release configuration
|
||||
#Mon Jan 19 12:16:50 CET 2015
|
||||
preparationGoals=clean verify
|
||||
scm.commentPrefix=[maven-release-plugin]
|
||||
remoteTagging=true
|
||||
exec.additionalArguments=-P development
|
||||
completedPhase=scm-check-modifications
|
||||
scm.url=scm\:git\:http\://gerrit.touk.pl\:8080/integracja/http-mock-server
|
Loading…
Add table
Add a link
Reference in a new issue