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

issue 12: copy the state before dispatching it to subscribers #14

Closed
wants to merge 1 commit into from

Conversation

stephanenicolas
Copy link
Collaborator

Solves issue #12.

TDD driven.

@yichenwu
Copy link

yichenwu commented Sep 1, 2017

have been tested in real case and work well in main Groupon app

StateChangeListener<Integer> mockListener1 = createMock(StateChangeListener.class);

mockListener0.onStateChanged(0);
expectLastCall();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed.

expectLastCall();

mockListener1.onStateChanged(0);
expectLastCall();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed.

@saguinav saguinav closed this Sep 6, 2017
@saguinav
Copy link
Collaborator

saguinav commented Sep 6, 2017

Fixed in #15

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

Successfully merging this pull request may close these issues.

None yet

4 participants