From 0109ce42338ca085db04116c890648e29dae7d52 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Wed, 5 Aug 2015 16:19:03 +0200 Subject: [PATCH] Added priority to the sample project DSL and test. Changes in tests to reflect stub-priority feature added by @mariuszs. --- .../io/codearte/accurest/plugin/BasicFunctionalSpec.groovy | 1 + .../pairId/colleratePlacesFromTweet.groovy | 1 + 2 files changed, 2 insertions(+) diff --git a/accurest-gradle-plugin/src/test/groovy/io/codearte/accurest/plugin/BasicFunctionalSpec.groovy b/accurest-gradle-plugin/src/test/groovy/io/codearte/accurest/plugin/BasicFunctionalSpec.groovy index d488f03ff4..ce2d32dafe 100755 --- a/accurest-gradle-plugin/src/test/groovy/io/codearte/accurest/plugin/BasicFunctionalSpec.groovy +++ b/accurest-gradle-plugin/src/test/groovy/io/codearte/accurest/plugin/BasicFunctionalSpec.groovy @@ -43,6 +43,7 @@ class BasicFunctionalSpec extends IntegrationSpec { def generatedClientJsonStub = file(GENERATED_CLIENT_JSON_STUB).text new JsonSlurper().parseText(generatedClientJsonStub) == new JsonSlurper().parseText(""" { + "priority: 2", "request": { "method": "PUT", "headers": { diff --git a/accurest-gradle-plugin/src/test/resources/functionalTest/bootSimple/repository/mappings/com/ofg/twitter-places-analyzer/pairId/colleratePlacesFromTweet.groovy b/accurest-gradle-plugin/src/test/resources/functionalTest/bootSimple/repository/mappings/com/ofg/twitter-places-analyzer/pairId/colleratePlacesFromTweet.groovy index 08b137a054..6fe36c6a89 100644 --- a/accurest-gradle-plugin/src/test/resources/functionalTest/bootSimple/repository/mappings/com/ofg/twitter-places-analyzer/pairId/colleratePlacesFromTweet.groovy +++ b/accurest-gradle-plugin/src/test/resources/functionalTest/bootSimple/repository/mappings/com/ofg/twitter-places-analyzer/pairId/colleratePlacesFromTweet.groovy @@ -1,4 +1,5 @@ io.codearte.accurest.dsl.GroovyDsl.make { + priority 2 request { method 'PUT' url '/api/12'