Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gavingaozhangmin committed Aug 30, 2022
1 parent b48e5d2 commit 5d7e6a0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public void testFilterEntriesForConsumerOfEntryFilter() throws Exception {
Topic mockTopic = mock(Topic.class);
when(this.subscriptionMock.getTopic()).thenReturn(mockTopic);

BrokerService mockBrokerService = mock(BrokerService.class);
when(mockTopic.getBrokerService()).thenReturn(mockBrokerService);
EntryFilterWithClassLoader mockFilter = mock(EntryFilterWithClassLoader.class);
when(mockFilter.filterEntry(any(Entry.class), any(FilterContext.class))).thenReturn(
EntryFilter.FilterResult.REJECT);
Expand Down

0 comments on commit 5d7e6a0

Please sign in to comment.