@Test void testCurrentTokenReturnsTheGivenTokenIfNoConversionHasTakenPlace() { KafkaTrackingToken expectedToken = KafkaTrackingToken.emptyToken(); TrackingRecordConverter<String, String> testSubject = new TrackingRecordConverter<>(messageConverter, expectedToken); KafkaTrackingToken resultToken = testSubject.currentToken(); assertEquals(expectedToken, resultToken); }
public KafkaTrackingToken currentToken() { return currentToken; }
TrackingRecordConverter implements RecordConverter<K, V, KafkaEventMessage> { public KafkaTrackingToken currentToken() { return currentToken; } }
TrackingRecordConverter implements RecordConverter<K, V, KafkaEventMessage> { public KafkaTrackingToken currentToken() { return currentToken; } TrackingRecordConverter(KafkaMessageConverter<K, V> messageConverter, KafkaTrackingToken token); }
TrackingRecordConverter implements RecordConverter<K, V, KafkaEventMessage> { public KafkaTrackingToken currentToken() { return currentToken; } TrackingRecordConverter(KafkaMessageConverter<K, V> messageConverter, KafkaTrackingToken token); @Override List<KafkaEventMessage> convert(ConsumerRecords<K, V> records); KafkaTrackingToken currentToken(); }
TrackingRecordConverter implements RecordConverter<K, V, KafkaEventMessage> { public KafkaTrackingToken currentToken() { return currentToken; } TrackingRecordConverter(KafkaMessageConverter<K, V> messageConverter, KafkaTrackingToken token); @Override List<KafkaEventMessage> convert(ConsumerRecords<K, V> records); KafkaTrackingToken currentToken();  }