From 469fc3566e2d9569c33335775e29d574d36a0b11 Mon Sep 17 00:00:00 2001 From: jstaerk Date: Thu, 11 Aug 2022 12:51:48 +0200 Subject: [PATCH] removed special test --- .../test/java/org/mustangproject/ZUGFeRD/XRTest.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java b/library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java index 27f41abb..6b5cccba 100644 --- a/library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java +++ b/library/src/test/java/org/mustangproject/ZUGFeRD/XRTest.java @@ -81,15 +81,8 @@ public class XRTest extends TestCase { String number = "123"; String amountStr = "1.00"; BigDecimal amount = new BigDecimal(amountStr); - byte[] b = null; - Path path = Paths.get("c:\\users\\jstaerk\\temp\\ef1710en.pdf"); - try { - b = Files.readAllBytes(path); - - } catch(IOException ex) { - ex.printStackTrace(); - } - + byte[] b = {12, 13}; + FileAttachment fe1=new FileAttachment("one.pdf", "application/pdf", "Alternative", b); Invoice i = new Invoice().setDueDate(new Date()).setIssueDate(new Date()).setDeliveryDate(new Date()) .setSender(new TradeParty(orgname,"teststr","55232","teststadt","DE").addTaxID("DE4711").addVATID("DE0815").setContact(new Contact("Hans Test","+49123456789","test@example.org")).addBankDetails(new BankDetails("DE12500105170648489890","COBADEFXXX")))