Skip to content

Commit b489c0c

Browse files
committed
Update README for Captor syntax
1 parent d1dd616 commit b489c0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ aMock.stringArgument("it worked!")
100100

101101
verify(aMock).stringArgument(captor)
102102

103-
captor <-> "it worked!"
103+
captor <-> "it worked!"
104+
//or
105+
captor shouldHave "it worked!"
104106
```
105107

106108
As you can see there is no need to call `capture()` nor `getValue` anymore (although they're still there if you need them)

0 commit comments

Comments
 (0)