From 18e75f33525ca3698dd3750098ab232a79921d8d Mon Sep 17 00:00:00 2001 From: Dominik Adam Przybysz Date: Sat, 19 Sep 2015 19:35:23 +0200 Subject: [PATCH] Update readme of jaxb version Change-Id: I09479e17c8e7c1bbc5be881c8526de63c681f4e4 --- README.md | 64 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 96c7c4c..9f46938 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ java -jar mockserver--jar-with-dependencies.jar [PORT] ```java RemoteMockServer remoteMockServer = new RemoteMockServer('localhost', ) -remoteMockServer.addMock(new AddMockRequestData( +remoteMockServer.addMock(new AddMock( name: '...', path: '...', port: ..., @@ -35,7 +35,7 @@ or via sending POST request to localhost:/serverControl ```xml - + ... ... ... @@ -72,13 +72,13 @@ In closures input parameter (called req) contains properties: Response if success: ```xml - + ``` Response with error message if failure: ```xml -... +... ``` ## Mock could be peeked to get get report of its invocations. @@ -91,61 +91,60 @@ List mockEvents = remoteMockServer.peekMock('...') Via sending POST request to localhost:/serverControl ```xml - - ... + + ... ``` Response if success: ```xml - + ... - ... +
...
...
- - ... + + ... ... - + - ... + ... ...
+ ... ... - ... +
...
...
- ...
- ...
``` Response with error message if failure: ```xml -... +... ``` -## When mock was used it could be unregistered by name. It also returns report of mock invocations. +## When mock was used it could be unregistered by name. It also optionally returns report of mock invocations if second parameter is true. Via client: ```java -List mockEvents = remoteMockServer.removeMock('...') +List mockEvents = remoteMockServer.removeMock('...', ...) ``` Via sending POST request to localhost:/serverControl ```xml - + ... ... @@ -154,47 +153,46 @@ Via sending POST request to localhost:/serverControl Response if success (and skipReport not given or equal false): ```xml - + ... - ... +
...
...
- - ... + + ... ... - + - ... + ... ...
+ ... ... - ... +
...
...
- ...
- ...
``` If skipReport is set to true then response will be: ```xml - + ``` Response with error message if failure: ```xml -... +... ``` @@ -215,6 +213,12 @@ Response: ... ... ... + ... + ... + ... + ... + ... + ... ...