> Task :test FAILED
INFO-> Test worker 测试类[com.funtest.spock.Mop]开始了
INFO-> Test worker 测试方法开始了
INFO-> Test worker 测试方法结束了
INFO-> Test worker 测试方法开始了
INFO-> Test worker 测试方法结束了
INFO-> Test worker 测试方法开始了
WARN-> Test worker 设置FunTester
WARN-> Test worker 获取FunTester
INFO-> Test worker 测试方法结束了
INFO-> Test worker 测试方法开始了
WARN-> Test worker 设置Have Fun
WARN-> Test worker 获取FunTester
INFO-> Test worker 测试方法结束了
Condition not satisfied:
fun.setName(name) == tt
| | | | |
| | | | Have Fun
| | | false
| | | 8 differences (11% similarity)
| | | (FunT)e(ster)
| | | (Hav-)e( Fun)
| | Have Fun
| FunTester
<com.funtest.spock.Mop@49013545 $spock_sharedField_fun=null specificationContext=org.spockframework.runtime.SpecificationContext@6c68765>
at com.funtest.spock.Mop.测试动态添加获取属性(Mop.groovy:60)
INFO-> Test worker 测试类[com.funtest.spock.Mop]结束了
Mop > 测试动态添加对象方法 PASSED
Mop > 测试动态添加静态方法 PASSED
Mop > 测试动态添加获取属性 > com.funtest.spock.Mop.测试动态添加获取属性 [name: FunTester, tt: FunTester, #0] PASSED
Mop > 测试动态添加获取属性 > com.funtest.spock.Mop.测试动态添加获取属性 [name: Have Fun, tt: Have Fun, #1] FAILED
org.spockframework.runtime.SpockComparisonFailure at Mop.groovy:60
Mop > 测试动态添加获取属性 FAILED
5 tests completed, 2 failed
FAILURE: Build failed with an exception.
4 actionable tasks: 1 executed, 3 up-to-date
评论