Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8347633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:25:12+00:00 2026-06-09T07:25:12+00:00

Having previous experience with RhinoMocks, which distinguishes between two separate Mockery type of classes:

  • 0

Having previous experience with RhinoMocks, which distinguishes between two separate Mockery type of classes: one being strict, that performs checks exactly like standard JMock mockery, and normla one, which simply does not care about the methods that you don’t list in your expectations.

For instance, if you want to test whether method a() is called on your object, but the whole program might subsequently invoke many other methods, in JMock you have to list everything explicitly, while Rhino would only care that the ones you actually list are called. Is there perhaps a way to achieve the same behaviour in JMock?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:25:14+00:00Added an answer on June 9, 2026 at 7:25 am
    but the whole program might subsequently invoke many other methods
    

    Whenever I feel the need for more ‘features’ in JMock I usually find I have a design problem. Have you considered the need to call many different methods on the same object? Could you refactor to where the behaviour you’re testing involves only a few calls to the mock?

    You can use allowing(mockedInterface) to allow all calls on a mock.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having an issue integrating iPhone apps. In one of my previous posts,
On the back of my previous question I am having some trouble with the
Having read this question Immutable or not immutable? and reading answers to my previous
I have inherited work from a previous employee. The issue I'm having is a
Having 1-day experience in Twisted I try to schedule message sending in reply to
Having wrestled with NSPopUpButton in a previous question here I am now trying to
Following on from a previous question , I am having trouble combining the Lazy<T>
Similar to this previous question , I am having a problem with text alignment
The previous programmer left the website in pretty unusable state, and I am having
After working hard in my ZF/Doctrine integration I'm having a problem translating my previous

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.