Open pasolid opened 1 year ago
Your own example/test literally does nothing for writer.processRecord(bean) , prints empty values for the object.
writer.processRecord(bean)
Located in the src/test/java/com/univocity/parsers/examples/WriterExamples.java under test example005WriteFixedWidthUsingAnnotatedBean
example005WriteFixedWidthUsingAnnotatedBean
For the TestBean object :
TestBean
TestBean bean = new TestBean(); bean.setAmount(new BigDecimal("500.33")); bean.setComments("Blah,blah"); bean.setPending(false); bean.setQuantity(100);
It supposed to print:
amount pending date quantity comments 500.33. false ? 100 "Bla, blah"
But instead it prints:
amount pending date quantity comments ? ? ? ? ?
This explains why I couldn’t make it work...
Your own example/test literally does nothing for
writer.processRecord(bean)
, prints empty values for the object.Located in the src/test/java/com/univocity/parsers/examples/WriterExamples.java under test
example005WriteFixedWidthUsingAnnotatedBean
For the
TestBean
object :It supposed to print:
But instead it prints:
This explains why I couldn’t make it work...