@ -22,7 +22,6 @@ import org.apache.kafka.common.serialization.Serdes;
@@ -22,7 +22,6 @@ import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.common.serialization.StringSerializer ;
import org.apache.kafka.common.utils.Bytes ;
import org.apache.kafka.streams.KeyValue ;
import org.apache.kafka.streams.KeyValueTimestamp ;
import org.apache.kafka.streams.StreamsBuilder ;
import org.apache.kafka.streams.TopologyTestDriver ;
import org.apache.kafka.streams.errors.TopologyException ;
@ -43,6 +42,7 @@ import org.apache.kafka.streams.state.ValueAndTimestamp;
@@ -43,6 +42,7 @@ import org.apache.kafka.streams.state.ValueAndTimestamp;
import org.apache.kafka.streams.test.ConsumerRecordFactory ;
import org.apache.kafka.test.MockAggregator ;
import org.apache.kafka.test.MockInitializer ;
import org.apache.kafka.test.MockProcessor ;
import org.apache.kafka.test.MockProcessorSupplier ;
import org.apache.kafka.test.MockReducer ;
import org.apache.kafka.test.StreamsTestUtils ;
@ -575,19 +575,19 @@ public class KGroupedStreamImplTest {
@@ -575,19 +575,19 @@ public class KGroupedStreamImplTest {
driver . pipeInput ( recordFactory . create ( TOPIC , "2" , "B" , 500L ) ) ;
driver . pipeInput ( recordFactory . create ( TOPIC , "3" , "B" , 100L ) ) ;
}
assertThat ( supplier . theCapturedProcessor ( ) . processedWithTimestamps , equalTo ( Arrays . asList (
new KeyValueTimestamp < > ( new Windowed < > ( "1" , new TimeWindow ( 0L , 500L ) ) , 1L , 0L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "1" , new TimeWindow ( 0L , 500L ) ) , 2L , 499L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "1" , new TimeWindow ( 0L , 500L ) ) , 3L , 499L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "2" , new TimeWindow ( 0L , 500L ) ) , 1L , 0L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "2" , new TimeWindow ( 0L , 500L ) ) , 2L , 100L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "2" , new TimeWindow ( 0L , 500L ) ) , 3L , 200L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "3" , new TimeWindow ( 0L , 500L ) ) , 1L , 1L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "1" , new TimeWindow ( 500L , 1000L ) ) , 1L , 500L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "1" , new TimeWindow ( 500L , 1000L ) ) , 2L , 500L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "2" , new TimeWindow ( 500L , 1000L ) ) , 1L , 500L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "2" , new TimeWindow ( 500L , 1000L ) ) , 2L , 500L ) ,
new KeyValueTimestamp < > ( new Windowed < > ( "3" , new TimeWindow ( 0L , 500L ) ) , 2L , 100L )
assertThat ( supplier . theCapturedProcessor ( ) . processed , equalTo ( Arrays . asList (
MockProcessor . makeRecord ( new Windowed < > ( "1" , new TimeWindow ( 0L , 500L ) ) , 1L , 0L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "1" , new TimeWindow ( 0L , 500L ) ) , 2L , 499L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "1" , new TimeWindow ( 0L , 500L ) ) , 3L , 499L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "2" , new TimeWindow ( 0L , 500L ) ) , 1L , 0L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "2" , new TimeWindow ( 0L , 500L ) ) , 2L , 100L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "2" , new TimeWindow ( 0L , 500L ) ) , 3L , 200L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "3" , new TimeWindow ( 0L , 500L ) ) , 1L , 1L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "1" , new TimeWindow ( 500L , 1000L ) ) , 1L , 500L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "1" , new TimeWindow ( 500L , 1000L ) ) , 2L , 500L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "2" , new TimeWindow ( 500L , 1000L ) ) , 1L , 500L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "2" , new TimeWindow ( 500L , 1000L ) ) , 2L , 500L ) ,
MockProcessor . makeRecord ( new Windowed < > ( "3" , new TimeWindow ( 0L , 500L ) ) , 2L , 100L )
) ) ) ;
}