Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmockito property update for real class #2

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

mmockito property update for real class #2

wants to merge 10 commits into from

Conversation

ragavsathish
Copy link

When mocking the real class, current library does not allow to update the property of real class

classdef RealClass < handle
    %RealClass Class used in acceptance tests

    properties
        prop1
        prop2
    end
    ....

m = Mock(RealClass, 'tolerant');
m.prop1 = 5
Exception -  property not present.

This pull request has fix for above. Any comments, feedback is greatly appreciated.

Thanks,
Sathish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants