From bc2373c2ee29c219a832fabcc413f12fa012c62c Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 6 Sep 2024 16:13:40 +0800 Subject: [PATCH] Update --- .../ws/jersey/template/web/DataServletSpec.groovy | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/test/groovy/com/qubitpi/ws/jersey/template/web/DataServletSpec.groovy b/src/test/groovy/com/qubitpi/ws/jersey/template/web/DataServletSpec.groovy index 275ccdd..533f480 100644 --- a/src/test/groovy/com/qubitpi/ws/jersey/template/web/DataServletSpec.groovy +++ b/src/test/groovy/com/qubitpi/ws/jersey/template/web/DataServletSpec.groovy @@ -68,12 +68,13 @@ class DataServletSpec extends Specification { @Unroll @SuppressWarnings('GroovyAccessibility') def "Value of type '#valueType' #isOrNot terminal type"() { + given: + Value value = Mock(Value) { + type() >> valueType + } + expect: - DataServlet.isTerminalValue( - Mock(Value) { - type() >> valueType - } - ) == isTerminalType + DataServlet.isTerminalValue(value) == isTerminalType where: valueType || isTerminalType