[ https://issues.apache.org/jira/browse/PDFBOX-394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson closed PDFBOX-394. ------------------------------ Resolution: Fixed Fix Version/s: 1.8.0 All unit tests have been passing for some time. Will just label as fixed in 1.8. > TestFDF junit test failing in testFDFFreedomExpressions(). > ---------------------------------------------------------- > > Key: PDFBOX-394 > URL: https://issues.apache.org/jira/browse/PDFBOX-394 > Project: PDFBox > Issue Type: Test > Components: Parsing > Affects Versions: 0.8.0-incubator > Reporter: Brian Carrier > Fix For: 1.8.0 > > Attachments: PDFParser.diff, TestAll.diff > > > Currently, the TestFDF junit tests are failing because > testFDFFreedomExpressions() tries to load an FDF file and > PDFParser.parseHeader() returns an error because it can't find a PDF header. > I fixed that code so that it also looks for an FDF header. That patch is > attached. > However, it still results in a test failure with this line: > assertTrue( totalAmt.getDictionary().getDictionaryObject( "AP" ) == null ); > I haven't looked at the test file enough to determine where the problem is. > getDictionaryObject("AP") is returning a COSDictionary. PDFDebugger shows > that eeSuppTotalAmt is in entry 58, but I don't see any obvious reference to > an "AP". > Also, TestFDF is being called twice in TestAll.java. That patch is also > attached. > Please apply these patches and keep this open so that the assertion failure > can be fixed. -- This message was sent by Atlassian JIRA (v6.2#6252)