Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelli321 committed Aug 11, 2023
1 parent 00f2a0b commit 65d10a9
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -224,7 +224,7 @@ public void setup() {
when(ksqlMaterializationFactory.create(any(), any(), any(), any())).thenReturn(materialization);
when(processingLogContext.getLoggerFactory()).thenReturn(processingLoggerFactory);
when(processingLoggerFactory.getLogger(any(), anyMap())).thenReturn(processingLogger);
when(ksqlConfig.getKsqlStreamConfigProps(anyString())).thenReturn(Collections.emptyMap());
when(ksqlConfig.getKsqlStreamConfigProps(anyString(), anyBoolean())).thenReturn(Collections.emptyMap());
when(ksqlConfig.getString(KsqlConfig.KSQL_CUSTOM_METRICS_TAGS)).thenReturn("");
when(ksqlConfig.getString(KsqlConfig.KSQL_PERSISTENT_QUERY_NAME_PREFIX_CONFIG))
.thenReturn(PERSISTENT_PREFIX);
Expand Down Expand Up @@ -664,7 +664,7 @@ private void shouldUseProvidedOptimizationConfig(final Object value) {
// Given:
final Map<String, Object> properties =
Collections.singletonMap(StreamsConfig.TOPOLOGY_OPTIMIZATION_CONFIG, value);
when(ksqlConfig.getKsqlStreamConfigProps(anyString())).thenReturn(properties);
when(ksqlConfig.getKsqlStreamConfigProps(anyString(), anyBoolean())).thenReturn(properties);

// When:
final PersistentQueryMetadata queryMetadata = buildPersistentQuery(
Expand Down Expand Up @@ -716,7 +716,7 @@ private void assertPropertiesContainDummyInterceptors() {
@Test
public void shouldAddMetricsInterceptorsToExistingList() {
// Given:
when(ksqlConfig.getKsqlStreamConfigProps(anyString())).thenReturn(ImmutableMap.of(
when(ksqlConfig.getKsqlStreamConfigProps(anyString(), anyBoolean())).thenReturn(ImmutableMap.of(
StreamsConfig.consumerPrefix(ConsumerConfig.INTERCEPTOR_CLASSES_CONFIG),
ImmutableList.of(DummyConsumerInterceptor.class.getName()),
StreamsConfig.producerPrefix(ConsumerConfig.INTERCEPTOR_CLASSES_CONFIG),
Expand All @@ -737,7 +737,7 @@ public void shouldAddMetricsInterceptorsToExistingList() {
@Test
public void shouldAddMetricsInterceptorsToExistingString() {
// When:
when(ksqlConfig.getKsqlStreamConfigProps(anyString())).thenReturn(ImmutableMap.of(
when(ksqlConfig.getKsqlStreamConfigProps(anyString(), anyBoolean())).thenReturn(ImmutableMap.of(
StreamsConfig.consumerPrefix(ConsumerConfig.INTERCEPTOR_CLASSES_CONFIG),
DummyConsumerInterceptor.class.getName(),
StreamsConfig.producerPrefix(ConsumerConfig.INTERCEPTOR_CLASSES_CONFIG),
Expand All @@ -759,7 +759,7 @@ public void shouldAddMetricsInterceptorsToExistingString() {
@SuppressWarnings("unchecked")
public void shouldAddMetricsInterceptorsToExistingStringList() {
// When:
when(ksqlConfig.getKsqlStreamConfigProps(anyString())).thenReturn(ImmutableMap.of(
when(ksqlConfig.getKsqlStreamConfigProps(anyString(), anyBoolean())).thenReturn(ImmutableMap.of(
StreamsConfig.consumerPrefix(ConsumerConfig.INTERCEPTOR_CLASSES_CONFIG),
DummyConsumerInterceptor.class.getName()
+ ","
Expand Down

0 comments on commit 65d10a9

Please sign in to comment.