Github user derekstraka commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2473#discussion_r175426622
--- Diff:
nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/csv/TestCSVRecordReader.java
---
@@ -124,6 +324,24 @@ public void testSimpleParse() throws IOException,
MalformedRecordException {
}
}
+ @Test
+ public void testSimpleParseCustomDate() throws IOException,
MalformedRecordException {
+ final List<RecordField> fields = getDefaultFields();
+ fields.replaceAll(f -> f.getFieldName().equals("balance") ? new
RecordField("balance", doubleDataType) : f);
+
+ final RecordSchema schema = new SimpleRecordSchema(fields);
+
+ try (final InputStream fis = new FileInputStream(new
File("src/test/resources/csv/single-bank-account.csv"));
+ final CSVRecordReader reader = createReader(fis, schema,
format)) {
--- End diff --
Ah, this is cruft from when I was making tests. I was originally going to
read from the file, but moved in a different direction. I'll drop that.
---