File tree 1 file changed +3
-2
lines changed
processor/src/it/java/com/linecorp/decaton/processor
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 26
26
import java .util .Random ;
27
27
import java .util .concurrent .ConcurrentHashMap ;
28
28
import java .util .concurrent .ConcurrentMap ;
29
+ import java .util .stream .Collectors ;
29
30
30
31
import org .apache .kafka .clients .consumer .ConsumerConfig ;
31
32
import org .apache .kafka .clients .consumer .CooperativeStickyAssignor ;
@@ -190,8 +191,8 @@ public void doAssert() {
190
191
// use assertTrue instead of assertEquals not to cause error message explosion
191
192
//noinspection SimplifiableJUnitAssertion
192
193
for (Entry <HashableByteArray , List <TestTask >> e : produced .entrySet ()) {
193
- List <Long > producedTasks = e .getValue ().stream ().map (taskToOffset ::get ).toList ();
194
- List <Long > processedTasks = processed .get (e .getKey ()).stream ().map (taskToOffset ::get ).toList ();
194
+ List <Long > producedTasks = e .getValue ().stream ().map (taskToOffset ::get ).collect ( Collectors . toList () );
195
+ List <Long > processedTasks = processed .get (e .getKey ()).stream ().map (taskToOffset ::get ).collect ( Collectors . toList () );
195
196
assertEquals (producedTasks , processedTasks );
196
197
}
197
198
// assertTrue(produced.equals(processed));
You can’t perform that action at this time.
0 commit comments