【问题标题】:What is the definition of double right arrow operator ( >> ) in Spock?Spock中双右箭头运算符(>>)的定义是什么?
【发布时间】:2013-10-11 20:22:12
【问题描述】:

this Spock wiki page 中有涉及双右箭头运算符 (>>) 的代码 sn-ps。例如:

setup:
subscriber.isAlive() >> true

那么,在这种情况下,>> 运算符是什么意思?非常感谢。

【问题讨论】:

    标签: groovy spock


    【解决方案1】:

    右移 (>>) 运算符定义存根方法的返回值或行为。您可以在reference documentationStubbing 下找到更多信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-07
      • 2013-02-15
      • 1970-01-01
      • 2016-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-08
      相关资源
      最近更新 更多