File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
springfox-grails/src/test/groovy/springfox/documentation/grails Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestMethod
1212import org.springframework.web.method.HandlerMethod
1313import org.springframework.web.servlet.mvc.condition.PatternsRequestCondition
1414import spock.lang.Specification
15+ import springfox.documentation.RequestHandler
1516import springfox.documentation.RequestHandlerKey
1617import springfox.documentation.service.ResolvedMethodParameter
1718
@@ -44,6 +45,9 @@ class GrailsRequestHandlerSpec extends Specification implements UrlMappingSuppor
4445 sut. handlerMethod. equals(handlerMethod())
4546 sut. name == " testActionTestDomainLogicalPropertyName"
4647 sut. groupName() == " AnotherLogicalPropertyName"
48+ sut. headers() == [] as Set
49+ sut. params() == [] as Set
50+ sut. combine(Mock (RequestHandler )) != sut
4751 }
4852
4953 def areEqual (ResolvedMethodParameter a , ResolvedMethodParameter b ) {
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ import static springfox.documentation.grails.Parameters.*
1111class ParametersSpec extends Specification {
1212 def resolvedType = new TypeResolver (). resolve(String )
1313
14+ def " cannot instantiate this class" () {
15+ when :
16+ new Parameters ()
17+ then :
18+ thrown(UnsupportedOperationException )
19+ }
20+
1421 def " creates path parameter" () {
1522 given :
1623 def sut = pathParameter(0 , " test" , resolvedType)
You can’t perform that action at this time.
0 commit comments