Do not remove mock from history after max uses
This commit is contained in:
parent
769199f5d4
commit
fe9ef89970
4 changed files with 9 additions and 12 deletions
|
@ -96,6 +96,8 @@ class MockServerMaxUsesTest extends Specification {
|
|||
CloseableHttpResponse response3 = client.execute(restPost)
|
||||
then:'no mock should be found'
|
||||
response3.statusLine.statusCode == 404
|
||||
and:'mock should exist'
|
||||
remoteMockServer.listMocks().find { it.name == 'mock1' } != null
|
||||
}
|
||||
|
||||
def 'should return two mocks in cyclic order'() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue