Skip to content

Commit

Permalink
Fix mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
kvargha committed Jan 16, 2025
1 parent f2f3388 commit 1e66fb6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4822,6 +4822,7 @@ public void testStoreIngestionRecordTransformer(AAConfig aaConfig) throws Except
SchemaEntry valueSchemaEntry = mock(SchemaEntry.class);
when(valueSchemaEntry.getSchema()).thenReturn(myValueSchema);
when(mockSchemaRepo.getValueSchema(eq(storeNameWithoutVersionInfo), anyInt())).thenReturn(valueSchemaEntry);
when(mockSchemaRepo.getSupersetOrLatestValueSchema(eq(storeNameWithoutVersionInfo))).thenReturn(valueSchemaEntry);

StoreIngestionTaskTestConfig config = new StoreIngestionTaskTestConfig(Collections.singleton(PARTITION_FOO), () -> {
TestUtils.waitForNonDeterministicAssertion(
Expand Down Expand Up @@ -4894,6 +4895,7 @@ public void testStoreIngestionRecordTransformerError(AAConfig aaConfig) throws E
SchemaEntry valueSchemaEntry = mock(SchemaEntry.class);
when(valueSchemaEntry.getSchema()).thenReturn(myValueSchema);
when(mockSchemaRepo.getValueSchema(eq(storeNameWithoutVersionInfo), anyInt())).thenReturn(valueSchemaEntry);
when(mockSchemaRepo.getSupersetOrLatestValueSchema(eq(storeNameWithoutVersionInfo))).thenReturn(valueSchemaEntry);

StoreIngestionTaskTestConfig config = new StoreIngestionTaskTestConfig(Collections.singleton(PARTITION_FOO), () -> {
TestUtils.waitForNonDeterministicAssertion(
Expand Down

0 comments on commit 1e66fb6

Please sign in to comment.