Skip to content

Commit 1b484c5

Browse files
Format tests
1 parent 5c4ab2b commit 1b484c5

File tree

3 files changed

+43
-50
lines changed

3 files changed

+43
-50
lines changed

core/src/test/java/e2e/renderer/creditnote/CreditNoteTest.java

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,33 @@ public class CreditNoteTest extends AbstractTest {
3737
@Test
3838
public void testInvoiceWithCustomUnidadMedida() throws Exception {
3939
// Given
40-
CreditNote input = CreditNote
41-
.builder()
40+
CreditNote input = CreditNote.builder()
4241
.serie("FC01")
4342
.numero(1)
4443
.comprobanteAfectadoSerieNumero("F001-1")
4544
.sustentoDescripcion("mi sustento")
46-
.proveedor(Proveedor.builder().ruc("12345678912").razonSocial("Softgreen S.A.C.").build())
47-
.cliente(
48-
Cliente
49-
.builder()
50-
.nombre("Carlos Feria")
51-
.numeroDocumentoIdentidad("12121212121")
52-
.tipoDocumentoIdentidad(Catalog6.RUC.toString())
53-
.build()
45+
.proveedor(Proveedor.builder()
46+
.ruc("12345678912")
47+
.razonSocial("Softgreen S.A.C.")
48+
.build()
5449
)
55-
.detalle(
56-
DocumentoVentaDetalle
57-
.builder()
58-
.descripcion("Item1")
59-
.cantidad(new BigDecimal("10"))
60-
.precio(new BigDecimal("100"))
61-
.build()
50+
.cliente(Cliente.builder()
51+
.nombre("Carlos Feria")
52+
.numeroDocumentoIdentidad("12121212121")
53+
.tipoDocumentoIdentidad(Catalog6.RUC.toString())
54+
.build()
6255
)
63-
.detalle(
64-
DocumentoVentaDetalle
65-
.builder()
66-
.descripcion("Item2")
67-
.cantidad(new BigDecimal("10"))
68-
.precio(new BigDecimal("100"))
69-
.build()
56+
.detalle(DocumentoVentaDetalle.builder()
57+
.descripcion("Item1")
58+
.cantidad(new BigDecimal("10"))
59+
.precio(new BigDecimal("100"))
60+
.build()
61+
)
62+
.detalle(DocumentoVentaDetalle.builder()
63+
.descripcion("Item2")
64+
.cantidad(new BigDecimal("10"))
65+
.precio(new BigDecimal("100"))
66+
.build()
7067
)
7168
.build();
7269

core/src/test/java/e2e/renderer/debitnote/DebitNoteTest.java

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,33 @@ public class DebitNoteTest extends AbstractTest {
3737
@Test
3838
public void testInvoiceWithCustomUnidadMedida() throws Exception {
3939
// Given
40-
DebitNote input = DebitNote
41-
.builder()
40+
DebitNote input = DebitNote.builder()
4241
.serie("FD01")
4342
.numero(1)
4443
.comprobanteAfectadoSerieNumero("F001-1")
4544
.sustentoDescripcion("mi sustento")
46-
.proveedor(Proveedor.builder().ruc("12345678912").razonSocial("Softgreen S.A.C.").build())
47-
.cliente(
48-
Cliente
49-
.builder()
50-
.nombre("Carlos Feria")
51-
.numeroDocumentoIdentidad("12121212121")
52-
.tipoDocumentoIdentidad(Catalog6.RUC.toString())
53-
.build()
45+
.proveedor(Proveedor.builder()
46+
.ruc("12345678912")
47+
.razonSocial("Softgreen S.A.C.")
48+
.build()
5449
)
55-
.detalle(
56-
DocumentoVentaDetalle
57-
.builder()
58-
.descripcion("Item1")
59-
.cantidad(new BigDecimal("10"))
60-
.precio(new BigDecimal("100"))
61-
.build()
50+
.cliente(Cliente.builder()
51+
.nombre("Carlos Feria")
52+
.numeroDocumentoIdentidad("12121212121")
53+
.tipoDocumentoIdentidad(Catalog6.RUC.toString())
54+
.build()
6255
)
63-
.detalle(
64-
DocumentoVentaDetalle
65-
.builder()
66-
.descripcion("Item2")
67-
.cantidad(new BigDecimal("10"))
68-
.precio(new BigDecimal("100"))
69-
.build()
56+
.detalle(DocumentoVentaDetalle.builder()
57+
.descripcion("Item1")
58+
.cantidad(new BigDecimal("10"))
59+
.precio(new BigDecimal("100"))
60+
.build()
61+
)
62+
.detalle(DocumentoVentaDetalle.builder()
63+
.descripcion("Item2")
64+
.cantidad(new BigDecimal("10"))
65+
.precio(new BigDecimal("100"))
66+
.build()
7067
)
7168
.build();
7269

core/src/test/java/e2e/renderer/invoice/InvoiceTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public class InvoiceTest extends AbstractTest {
4343
@Test
4444
public void testInvoiceWithCustomUnidadMedida() throws Exception {
4545
// Given
46-
Invoice input = Invoice
47-
.builder()
46+
Invoice input = Invoice.builder()
4847
.serie("F001")
4948
.numero(1)
5049
.proveedor(Proveedor.builder().ruc("12345678912").razonSocial("Softgreen S.A.C.").build())

0 commit comments

Comments
 (0)