Skip to content

Replace never() calls in BehaviorSubjectTest with verifyNoMoreInteractions #3565

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

Merged
merged 1 commit into from
Dec 9, 2015
Merged

Replace never() calls in BehaviorSubjectTest with verifyNoMoreInteractions #3565

merged 1 commit into from
Dec 9, 2015

Conversation

vanniktech
Copy link
Collaborator

Advantage is that we verify that there's no interaction at all so also something that we might not expect is not going to happen.

@@ -43,7 +44,7 @@

public class BehaviorSubjectTest {

private final Throwable testException = new Throwable();
private Throwable testException = new Throwable();
Copy link
Member

Choose a reason for hiding this comment

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

Why did this lose final?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@akarnokd was a mistake. I added the final back

@akarnokd
Copy link
Member

akarnokd commented Dec 9, 2015

👍

1 similar comment
@stevegury
Copy link
Member

👍

stevegury added a commit that referenced this pull request Dec 9, 2015
…_cleanup

Replace never() calls in BehaviorSubjectTest with verifyNoMoreInteractions
@stevegury stevegury merged commit f60f8ce into ReactiveX:1.x Dec 9, 2015
@vanniktech vanniktech deleted the master_behavioursubject_test_cleanup branch December 10, 2015 07:41
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.

3 participants