Added priority to the sample project DSL and test.

Changes in tests to reflect stub-priority feature added by @mariuszs.
This commit is contained in:
Olga Maciaszek-Sharma
2015-08-05 16:19:03 +02:00
parent e3733dd6c3
commit 0109ce4233
2 changed files with 2 additions and 0 deletions

View File

@@ -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": {

View File

@@ -1,4 +1,5 @@
io.codearte.accurest.dsl.GroovyDsl.make {
priority 2
request {
method 'PUT'
url '/api/12'