help with verify()

Skip to first unread message

LT

unread,
Nov 17, 2010, 4:10:07 PM11/17/10
to mockito-flex
Hi, all.

I have the following code

var someClassMock:SomeClass = SomeClass(mockito.mock(SomeClass,
"SomeClass"));
var result:Boolean =
mockito.verify().that(someClassMock.doSomething("doSomethingArg"));

Since I'm not calling someClassMock.doSomething(), I expected
mockito.verify() to throw an Error or return false or something. Or
is it that mockito.verify() can only be used as part of a test case?

Thanks!

Robert Penner

unread,
Nov 18, 2010, 12:54:43 AM11/18/10
to mockit...@googlegroups.com
Did you call mockito.prepareClasses() first?

Robert


--
You received this message because you are subscribed to the Google Groups "mockito-flex" group.
To post to this group, send email to mockit...@googlegroups.com.
To unsubscribe from this group, send email to mockito-flex...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mockito-flex?hl=en.


Reply all
Reply to author
Forward
0 new messages