Do not remove mock from history after max uses

This commit is contained in:
Piotr Fus 2020-08-11 12:53:35 +02:00
parent 769199f5d4
commit fe9ef89970
4 changed files with 9 additions and 12 deletions

View file

@ -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'() {