fixed compilation errors

This commit is contained in:
Jochen Staerk
2016-01-17 17:39:04 +01:00
parent b0d0e93943
commit df8839c785
3 changed files with 1396 additions and 1211 deletions

View File

@@ -139,11 +139,6 @@ public class MustangReaderWriterEdgeTest extends TestCase implements IZUGFeRDExp
return allItems; return allItems;
} }
@Override
public String getInvoiceCurrency() {
return "EUR";
}
@Override @Override
public String getOwnPaymentInfoText() { public String getOwnPaymentInfoText() {
return "Überweisung"; return "Überweisung";
@@ -402,13 +397,12 @@ public class MustangReaderWriterEdgeTest extends TestCase implements IZUGFeRDExp
final String TARGET_PDF = "./target/testout-MustangGnuaccountingBeispielRE-20151008_504newEdge.pdf"; final String TARGET_PDF = "./target/testout-MustangGnuaccountingBeispielRE-20151008_504newEdge.pdf";
// the writing part // the writing part
PDDocument doc;
try try
{ {
// automatically add Zugferd to all outgoing invoices // automatically add Zugferd to all outgoing invoices
ZUGFeRDExporter ze = new ZUGFeRDExporter(); ZUGFeRDExporter ze = new ZUGFeRDExporter();
ze.PDFmakeA3compliant(SOURCE_PDF, "My Application", System.getProperty("user.name"), true); ze.PDFmakeA3compliant(SOURCE_PDF, "My Application", System.getProperty("user.name"), true);
ze.PDFattachZugferdFile(doc, this); ze.PDFattachZugferdFile(this);
ze.export(TARGET_PDF); ze.export(TARGET_PDF);
} }
catch (IOException e) catch (IOException e)

View File

@@ -138,11 +138,6 @@ public class MustangReaderWriterTest extends TestCase implements IZUGFeRDExporta
return allItems; return allItems;
} }
@Override
public String getInvoiceCurrency() {
return "EUR";
}
@Override @Override
public String getOwnPaymentInfoText() { public String getOwnPaymentInfoText() {
return "Überweisung"; return "Überweisung";
@@ -404,16 +399,13 @@ public class MustangReaderWriterTest extends TestCase implements IZUGFeRDExporta
final String TARGET_PDF = "./target/testout-MustangGnuaccountingBeispielRE-20151008_504new.pdf"; final String TARGET_PDF = "./target/testout-MustangGnuaccountingBeispielRE-20151008_504new.pdf";
// the writing part // the writing part
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(this);
doc.save(TARGET_PDF); ze.export(TARGET_PDF);
doc.close();
} }
catch (IOException e) catch (IOException e)
{ {