Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Mock only, no verification
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
C. Benson Manica  
View profile  
 More options Aug 6 2012, 5:29 pm
From: "C. Benson Manica" <cbman...@gmail.com>
Date: Mon, 6 Aug 2012 14:29:49 -0700 (PDT)
Local: Mon, Aug 6 2012 5:29 pm
Subject: Mock only, no verification

Q. Is it possible to mock objects and create return values with NO
expectation, verification, checking, or ANYTHING other than just behaving
in a certain way?

If so, it would be GREAT if it were documented.  If not, I'm using another
mock library next time, because the last 3 hours of my life have not been
fun.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
floehopper  
View profile  
 More options Aug 6 2012, 5:46 pm
From: floehopper <floehop...@gmail.com>
Date: Mon, 6 Aug 2012 14:46:40 -0700 (PDT)
Local: Mon, Aug 6 2012 5:46 pm
Subject: Re: Mock only, no verification

I think what you are after is stubbing which is like an expectation which
can be invoked zero/many times. Have a look at the examples in the
documentation here [1] and here [2]. Let us know if you still have
questions after that.

James.
---
http://jamesmead.org
http://gofreerange.com

[1] http://gofreerange.com/mocha/docs/Mocha/Mock.html#stubs-instance_method
[2]
http://gofreerange.com/mocha/docs/Mocha/ObjectMethods.html#stubs-inst...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
floehopper  
View profile  
 More options Aug 7 2012, 4:24 am
From: floehopper <floehop...@gmail.com>
Date: Tue, 7 Aug 2012 01:24:08 -0700 (PDT)
Local: Tues, Aug 7 2012 4:24 am
Subject: Re: Mock only, no verification

Hi. Did that help? Or are you still stuck?

James.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »