From 577619cb2c1079d618ce32db6de4548510cca32b Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Thu, 21 Apr 2016 13:44:41 +0200 Subject: [PATCH] Added a description field can be useful to provide some extensive descriptions of a scenario --- .../main/groovy/io/codearte/accurest/dsl/GroovyDsl.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/accurest-core/src/main/groovy/io/codearte/accurest/dsl/GroovyDsl.groovy b/accurest-core/src/main/groovy/io/codearte/accurest/dsl/GroovyDsl.groovy index 97b023b34e..b3b5a1e4e2 100644 --- a/accurest-core/src/main/groovy/io/codearte/accurest/dsl/GroovyDsl.groovy +++ b/accurest-core/src/main/groovy/io/codearte/accurest/dsl/GroovyDsl.groovy @@ -17,6 +17,7 @@ class GroovyDsl { Request request Response response String label + String description Input inputMessage OutputMessage outputMessage @@ -35,6 +36,10 @@ class GroovyDsl { this.label = label } + void description(String description) { + this.description = description + } + void request(@DelegatesTo(Request) Closure closure) { this.request = new Request() closure.delegate = request