@Test public void testDynamodbEventToRecordsV2() { List<Record> convertedRecords = DynamodbEventTransformer.toRecordsV2(dynamodbEvent); Assertions.assertEquals(expectedRecordsV2, convertedRecords); }
public static List<Record> toRecordsV2(final DynamodbEvent dynamodbEvent) { return dynamodbEvent .getRecords() .stream() .filter(record -> !Objects.isNull(record)) .map(DynamodbRecordTransformer::toRecordV2) .collect(Collectors.toList()); }
DynamodbEventTransformer { public static List<Record> toRecordsV2(final DynamodbEvent dynamodbEvent) { return dynamodbEvent .getRecords() .stream() .filter(record -> !Objects.isNull(record)) .map(DynamodbRecordTransformer::toRecordV2) .collect(Collectors.toList()); } }
DynamodbEventTransformer { public static List<Record> toRecordsV2(final DynamodbEvent dynamodbEvent) { return dynamodbEvent .getRecords() .stream() .filter(record -> !Objects.isNull(record)) .map(DynamodbRecordTransformer::toRecordV2) .collect(Collectors.toList()); }  }
DynamodbEventTransformer { public static List<Record> toRecordsV2(final DynamodbEvent dynamodbEvent) { return dynamodbEvent .getRecords() .stream() .filter(record -> !Objects.isNull(record)) .map(DynamodbRecordTransformer::toRecordV2) .collect(Collectors.toList()); }  static List<Record> toRecordsV2(final DynamodbEvent dynamodbEvent); }
DynamodbEventTransformer { public static List<Record> toRecordsV2(final DynamodbEvent dynamodbEvent) { return dynamodbEvent .getRecords() .stream() .filter(record -> !Objects.isNull(record)) .map(DynamodbRecordTransformer::toRecordV2) .collect(Collectors.toList()); }  static List<Record> toRecordsV2(final DynamodbEvent dynamodbEvent);  }