corrected dependencies, partly corrected tests

This commit is contained in:
Jochen Staerk
2016-01-17 16:54:59 +01:00
parent af90f09255
commit b0d0e93943
3 changed files with 25 additions and 4 deletions

View File

@@ -21,6 +21,17 @@
<artifactId>jaxb-runtime</artifactId> <artifactId>jaxb-runtime</artifactId>
<version>2.2.11</version> <version>2.2.11</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>preflight</artifactId>
<version>1.8.8</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>1.8.8</version>
</dependency>
</dependencies> </dependencies>
<mailingLists> <mailingLists>

View File

@@ -118,6 +118,12 @@ public class MustangReaderWriterEdgeTest extends TestCase implements IZUGFeRDExp
{ {
return null; return null;
} }
@Override
public String getCurrency()
{
return "EUR";
}
@Override @Override
public IZUGFeRDExportableItem[] getZFItems() public IZUGFeRDExportableItem[] getZFItems()
@@ -399,13 +405,11 @@ public class MustangReaderWriterEdgeTest extends TestCase implements IZUGFeRDExp
PDDocument doc; PDDocument doc;
try try
{ {
doc = PDDocument.load(SOURCE_PDF);
// automatically add Zugferd to all outgoing invoices // automatically add Zugferd to all outgoing invoices
ZUGFeRDExporter ze = new ZUGFeRDExporter(); ZUGFeRDExporter ze = new ZUGFeRDExporter();
ze.PDFmakeA3compliant(doc, "My Application", System.getProperty("user.name"), true); ze.PDFmakeA3compliant(SOURCE_PDF, "My Application", System.getProperty("user.name"), true);
ze.PDFattachZugferdFile(doc, this); ze.PDFattachZugferdFile(doc, this);
doc.save(TARGET_PDF); ze.export(TARGET_PDF);
doc.close();
} }
catch (IOException e) catch (IOException e)
{ {

View File

@@ -118,6 +118,12 @@ public class MustangReaderWriterTest extends TestCase implements IZUGFeRDExporta
return null; return null;
} }
@Override
public String getCurrency()
{
return "EUR";
}
@Override @Override
public IZUGFeRDExportableItem[] getZFItems() public IZUGFeRDExportableItem[] getZFItems()
{ {