Search in sources :

Example 1 with RenglonNotaCreditoBuilder

use of sic.builder.RenglonNotaCreditoBuilder in project sic by belluccifranco.

the class NotaServiceImplTest method shloudCalcularTotalNotaCredito.

@Test
public void shloudCalcularTotalNotaCredito() {
    RenglonNotaCredito renglon1 = new RenglonNotaCreditoBuilder().build();
    List<RenglonNotaCredito> renglones = new ArrayList<>();
    renglones.add(renglon1);
    assertEquals(172.062, notaServiceImpl.calcularTotalNota(renglones), 0);
}
Also used : RenglonNotaCredito(sic.modelo.RenglonNotaCredito) RenglonNotaCreditoBuilder(sic.builder.RenglonNotaCreditoBuilder) ArrayList(java.util.ArrayList) Test(org.junit.Test)

Aggregations

ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1 RenglonNotaCreditoBuilder (sic.builder.RenglonNotaCreditoBuilder)1 RenglonNotaCredito (sic.modelo.RenglonNotaCredito)1