From cc07dd551dcde5a33d06cdb92e4a2bea10ff394d Mon Sep 17 00:00:00 2001 From: kimscott Date: Tue, 12 Nov 2019 16:32:32 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=84=EC=95=BD=EC=84=9C=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../contracts/rest/productGet.groovy | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/test/resources/contracts/rest/productGet.groovy diff --git a/src/test/resources/contracts/rest/productGet.groovy b/src/test/resources/contracts/rest/productGet.groovy deleted file mode 100644 index 8cee3b9..0000000 --- a/src/test/resources/contracts/rest/productGet.groovy +++ /dev/null @@ -1,31 +0,0 @@ -package contracts.rest - -org.springframework.cloud.contract.spec.Contract.make { - request { - method 'GET' - url ('/product/1') - headers { - contentType(applicationJson()) - } - } - response { - status 200 - body( - id: 1, - name: "TV", - price: 10000, - stock: 10, - imageUrl: "testUrl" - ) - bodyMatchers { - jsonPath('$.id', byRegex(nonEmpty()).asLong()) - jsonPath('$.name', byRegex(nonEmpty()).asString()) - jsonPath('$.price', byRegex(nonEmpty()).asLong()) - jsonPath('$.stock', byRegex(nonEmpty()).asLong()) - jsonPath('$.imageUrl', byRegex(nonEmpty()).asString()) - } - headers { - contentType(applicationJson()) - } - } -}