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

KAFKA-14133: Move MeteredSessionStoreTest, MeteredWindowStoreTest and ReadOnlyKeyValueStoreFacadeTest to Mockito #14404

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

clolov
Copy link
Contributor

@clolov clolov commented Sep 19, 2023

This pull requests migrates mocks from MeteredSessionStoreTest, MeteredWindowStoreTest and ReadOnlyKeyValueStoreFacadeTest to Mockito.

@clolov clolov added streams tests Test fixes (including flaky tests) labels Sep 19, 2023
STORE_TYPE,
Serdes.String(),
Serdes.String(),
new MockTime()
);
expect(inner.name()).andStubReturn("store");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unneeded here and elsewhere due to being initialised in the setup method.

store.init((StateStoreContext) context, store);
}

@SuppressWarnings("deprecation")
@Test
public void shouldDelegateDeprecatedInit() {
final SessionStore<Bytes, byte[]> inner = mock(SessionStore.class);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unneeded here and elsewhere due to already being defined as a field.

@divijvaidya divijvaidya merged commit 5bdea94 into apache:trunk Sep 22, 2023
@divijvaidya
Copy link
Contributor

The tests failures are unrelated and build is successful - https://ci-builds.apache.org/blue/organizations/jenkins/Kafka%2Fkafka-pr/detail/PR-14404/1/pipeline

rreddy-22 pushed a commit to rreddy-22/kafka-rreddy that referenced this pull request Oct 3, 2023
… ReadOnlyKeyValueStoreFacadeTest to Mockito (apache#14404)

Reviewers: Divij Vaidya <[email protected]>
k-wall pushed a commit to k-wall/kafka that referenced this pull request Nov 21, 2023
… ReadOnlyKeyValueStoreFacadeTest to Mockito (apache#14404)

Reviewers: Divij Vaidya <[email protected]>
AnatolyPopov pushed a commit to aiven/kafka that referenced this pull request Feb 16, 2024
… ReadOnlyKeyValueStoreFacadeTest to Mockito (apache#14404)

Reviewers: Divij Vaidya <[email protected]>
Cerchie pushed a commit to Cerchie/kafka that referenced this pull request Feb 22, 2024
… ReadOnlyKeyValueStoreFacadeTest to Mockito (apache#14404)

Reviewers: Divij Vaidya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
streams tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants