-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Conversation
… ReadOnlyKeyValueStoreFacadeTest to Mockito
STORE_TYPE, | ||
Serdes.String(), | ||
Serdes.String(), | ||
new MockTime() | ||
); | ||
expect(inner.name()).andStubReturn("store"); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
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 |
… ReadOnlyKeyValueStoreFacadeTest to Mockito (apache#14404) Reviewers: Divij Vaidya <[email protected]>
… ReadOnlyKeyValueStoreFacadeTest to Mockito (apache#14404) Reviewers: Divij Vaidya <[email protected]>
… ReadOnlyKeyValueStoreFacadeTest to Mockito (apache#14404) Reviewers: Divij Vaidya <[email protected]>
… ReadOnlyKeyValueStoreFacadeTest to Mockito (apache#14404) Reviewers: Divij Vaidya <[email protected]>
This pull requests migrates mocks from MeteredSessionStoreTest, MeteredWindowStoreTest and ReadOnlyKeyValueStoreFacadeTest to Mockito.