1- package io .github .carlosthe19916 .webservices ;
1+ package io .github .carlosthe19916 .webservices . managers ;
22
33
44import org .junit .Assert ;
1212import java .nio .file .Path ;
1313import java .nio .file .Paths ;
1414
15- public class BillServiceSenderTest {
15+ public class BillServiceManagerTest {
1616
1717 private String USERNAME = "20494637074MODDATOS" ;
1818 private String PASSWORD = "MODDATOS" ;
@@ -27,7 +27,7 @@ public void sendBillInvoiceXml() throws IOException {
2727 byte [] bytes = new byte [is .available ()];
2828 int read = is .read (bytes );
2929
30- byte [] result = BillServiceSender .sendBill (FILE_NAME , bytes , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
30+ byte [] result = BillServiceManager .sendBill (FILE_NAME , bytes , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
3131 Assert .assertNotNull (result );
3232 }
3333
@@ -37,7 +37,7 @@ public void sendBillInvoicePath() throws IOException, URISyntaxException {
3737 java .net .URL url = getClass ().getResource ("/ubl/" + FILE_NAME );
3838 Path path = Paths .get (url .toURI ());
3939
40- byte [] result = BillServiceSender .sendBill (path , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
40+ byte [] result = BillServiceManager .sendBill (path , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
4141 Assert .assertNotNull (result );
4242 }
4343
@@ -48,7 +48,7 @@ public void sendBillInvoiceFile() throws IOException, URISyntaxException {
4848 Path path = Paths .get (url .toURI ());
4949 File file = path .toFile ();
5050
51- byte [] result = BillServiceSender .sendBill (file , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
51+ byte [] result = BillServiceManager .sendBill (file , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
5252 Assert .assertNotNull (result );
5353 }
5454
@@ -60,15 +60,15 @@ public void sendBillRetencionXml() throws IOException {
6060 byte [] bytes = new byte [is .available ()];
6161 int read = is .read (bytes );
6262
63- byte [] result = BillServiceSender .sendBill (FILE_NAME , bytes , URL_RETENCION , USERNAME , PASSWORD );
63+ byte [] result = BillServiceManager .sendBill (FILE_NAME , bytes , URL_RETENCION , USERNAME , PASSWORD );
6464 Assert .assertNotNull (result );
6565 }
6666
6767 @ Test
6868 public void getStatus () {
6969 final String TICKET = "1529342625179" ;
7070
71- StatusResponse status = BillServiceSender .getStatus (TICKET , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
71+ StatusResponse status = BillServiceManager .getStatus (TICKET , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
7272 Assert .assertNotNull (status );
7373 }
7474
@@ -80,7 +80,7 @@ public void sendInvoiceVoidedDocumentXml() throws IOException {
8080 byte [] bytes = new byte [is .available ()];
8181 int read = is .read (bytes );
8282
83- String ticket = BillServiceSender .sendSummary (FILE_NAME , bytes , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
83+ String ticket = BillServiceManager .sendSummary (FILE_NAME , bytes , URL_BOLETA_FACTURA , USERNAME , PASSWORD );
8484 Assert .assertNotNull (ticket );
8585 }
8686
@@ -92,7 +92,7 @@ public void sendRetencionVoidedDocumentXml() throws IOException {
9292 byte [] bytes = new byte [is .available ()];
9393 int read = is .read (bytes );
9494
95- String ticket = BillServiceSender .sendSummary (FILE_NAME , bytes , URL_RETENCION , USERNAME , PASSWORD );
95+ String ticket = BillServiceManager .sendSummary (FILE_NAME , bytes , URL_RETENCION , USERNAME , PASSWORD );
9696 Assert .assertNotNull (ticket );
9797 }
9898
0 commit comments