corrected dependencies, partly corrected tests
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -119,6 +119,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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user