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:
@@ -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": {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
io.codearte.accurest.dsl.GroovyDsl.make {
|
||||
priority 2
|
||||
request {
|
||||
method 'PUT'
|
||||
url '/api/12'
|
||||
|
||||
Reference in New Issue
Block a user