1818
1919import io .github .project .openubl .xmlsender .idm .DocumentRepresentation ;
2020import io .github .project .openubl .xmlsender .models .DeliveryStatusType ;
21+ import io .github .project .openubl .xmlsender .resources .ApiApplication ;
2122import io .quarkus .test .junit .QuarkusTest ;
2223import io .restassured .http .Header ;
2324import io .restassured .response .Response ;
@@ -79,7 +80,8 @@ void withInvalidFileShouldReturnError() {
7980
8081 @ Test
8182 void invoice_withSystemCredentials_shouldReturnOK () {
82- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/invoice.xml" );
83+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/invoice.xml" );
84+
8385 assertNotNull (resource );
8486 File file = new File (resource .getPath ());
8587
@@ -106,7 +108,8 @@ void invoice_withSystemCredentials_shouldReturnOK() {
106108
107109 @ Test
108110 void invoice_withCustomCredentials_shouldReturnOK () {
109- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/invoice.xml" );
111+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/invoice.xml" );
112+
110113 assertNotNull (resource );
111114 File file = new File (resource .getPath ());
112115
@@ -135,7 +138,8 @@ void invoice_withCustomCredentials_shouldReturnOK() {
135138
136139 @ Test
137140 void invoice_downloadFile () throws IOException {
138- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/invoice.xml" );
141+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/invoice.xml" );
142+
139143 assertNotNull (resource );
140144 File file = new File (resource .getPath ());
141145
@@ -163,7 +167,8 @@ void invoice_downloadFile() throws IOException {
163167
164168 @ Test
165169 void validInvoice_customCredentials_shouldBeSentToSunat () throws InterruptedException {
166- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/invoice_signed.xml" );
170+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/invoice_signed.xml" );
171+
167172 assertNotNull (resource );
168173 File file = new File (resource .getPath ());
169174
@@ -218,7 +223,8 @@ void validInvoice_customCredentials_shouldBeSentToSunat() throws InterruptedExce
218223
219224 @ Test
220225 void invalidInvoice_customCredentials_shouldBeSentToSunat () throws InterruptedException {
221- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/invoice.xml" );
226+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/invoice.xml" );
227+
222228 assertNotNull (resource );
223229 File file = new File (resource .getPath ());
224230
@@ -267,7 +273,8 @@ void invalidInvoice_customCredentials_shouldBeSentToSunat() throws InterruptedEx
267273
268274 @ Test
269275 void validCreditNote_customCredentials_shouldBeSentToSunat () throws InterruptedException {
270- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/credit-note_signed.xml" );
276+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/credit-note_signed.xml" );
277+
271278 assertNotNull (resource );
272279 File file = new File (resource .getPath ());
273280
@@ -322,7 +329,8 @@ void validCreditNote_customCredentials_shouldBeSentToSunat() throws InterruptedE
322329
323330 @ Test
324331 void invalidCreditNote_customCredentials_shouldBeSentToSunat () throws InterruptedException {
325- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/credit-note.xml" );
332+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/credit-note.xml" );
333+
326334 assertNotNull (resource );
327335 File file = new File (resource .getPath ());
328336
@@ -371,7 +379,8 @@ void invalidCreditNote_customCredentials_shouldBeSentToSunat() throws Interrupte
371379
372380 @ Test
373381 void validDebitNote_customCredentials_shouldBeSentToSunat () throws InterruptedException {
374- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/debit-note_signed.xml" );
382+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/debit-note_signed.xml" );
383+
375384 assertNotNull (resource );
376385 File file = new File (resource .getPath ());
377386
@@ -426,7 +435,8 @@ void validDebitNote_customCredentials_shouldBeSentToSunat() throws InterruptedEx
426435
427436 @ Test
428437 void invalidDebitNote_customCredentials_shouldBeSentToSunat () throws InterruptedException {
429- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/debit-note.xml" );
438+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/debit-note.xml" );
439+
430440 assertNotNull (resource );
431441 File file = new File (resource .getPath ());
432442
@@ -475,7 +485,8 @@ void invalidDebitNote_customCredentials_shouldBeSentToSunat() throws Interrupted
475485
476486 @ Test
477487 void validVoidedDocument_customCredentials_shouldBeSentToSunat () throws InterruptedException {
478- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/voided-document_signed.xml" );
488+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/voided-document_signed.xml" );
489+
479490 assertNotNull (resource );
480491 File file = new File (resource .getPath ());
481492
@@ -530,7 +541,8 @@ void validVoidedDocument_customCredentials_shouldBeSentToSunat() throws Interrup
530541
531542 @ Test
532543 void invalidVoidedDocument_customCredentials_shouldBeSentToSunat () throws InterruptedException {
533- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/voided-document.xml" );
544+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/voided-document.xml" );
545+
534546 assertNotNull (resource );
535547 File file = new File (resource .getPath ());
536548
@@ -579,7 +591,8 @@ void invalidVoidedDocument_customCredentials_shouldBeSentToSunat() throws Interr
579591
580592 @ Test
581593 void validSummaryDocument_customCredentials_shouldBeSentToSunat () throws InterruptedException {
582- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/summary-document_signed.xml" );
594+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/summary-document_signed.xml" );
595+
583596 assertNotNull (resource );
584597 File file = new File (resource .getPath ());
585598
@@ -634,7 +647,8 @@ void validSummaryDocument_customCredentials_shouldBeSentToSunat() throws Interru
634647
635648 @ Test
636649 void invalidSummaryDocument_customCredentials_shouldBeSentToSunat () throws InterruptedException {
637- URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls/summary-document.xml" );
650+ URL resource = Thread .currentThread ().getContextClassLoader ().getResource ("xmls2/summary-document.xml" );
651+
638652 assertNotNull (resource );
639653 File file = new File (resource .getPath ());
640654
0 commit comments