xml matcher as mockito argument matcher

20 views
Skip to first unread message

Adi Stadelmann

unread,
Feb 10, 2015, 11:37:47 AM2/10/15
to specs2...@googlegroups.com
I would like to use a xml matcher as mockito matcher.
But a argThat(\\("a")) is a matcher for Seq[Node], but i need a matcher for a Node.

Is there a simple way to modify this matcher instead to write my own matcher?

See also http://stackoverflow.com/questions/28430271/specs2-xml-matcher-with-mockito

etorreborre

unread,
Feb 10, 2015, 6:53:00 PM2/10/15
to specs2...@googlegroups.com
There is indeed a way (cross-posted to SOF):

  there was one(connector).send(argThat(\\("ocl") ^^ ((_:Node).toSeq)))

Eric.
Reply all
Reply to author
Forward
0 new messages