dariuszseweryn commented on code in PR #10053:
URL: https://github.com/apache/nifi/pull/10053#discussion_r2192051368
##########
nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/src/test/java/org/apache/nifi/processors/aws/kinesis/stream/record/TestKinesisRecordProcessorRecord.java:
##########
@@ -284,22 +290,63 @@ public void
testProcessPoisonPillRecordButNoRawOutputWithCheckpoint() throws Shu
session.assertNotRolledBack();
}
- @Test
- public void testProcessUnparsableRecordWithRawOutputWithCheckpoint()
throws ShutdownException, InvalidStateException {
+ private static Stream<Arguments> unparsableRecordsLists() {
+ final KinesisClientRecord unparsableRecordMock =
mock(KinesisClientRecord.class);
+ return Stream.of(
+ Arguments.argumentSet("Unparsable At The Beginning",
+ Arrays.asList(
+ unparsableRecordMock,
+
KinesisClientRecord.builder().approximateArrivalTimestamp(null)
+ .partitionKey("partition-1")
+ .sequenceNumber("1")
+
.data(ByteBuffer.wrap("{\"record\":\"1\"}".getBytes(StandardCharsets.UTF_8)))
Review Comment:
Extracted declaration in function
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]