Examples of FinanziamentoSalGraduatoFake


Examples of it.pdor.generatorePdA.domain.FinanziamentoSalGraduatoFake

//    }
//  }
// 
  public void testCalcolaPamSalGraduato() {
   
    Finanziamento fin = new FinanziamentoSalGraduatoFake();       
    try {
      fin = generatorePdAService.calcolaPAM(fin);
      loggamiIlPiano(fin);   

      assertEquals("Totale Montante:",371203.60,MathUtils.round( fin.getTotaliPam().getQuotaMontante(),2))
      assertEquals("Totale Importo Rata:",241203.60,MathUtils.round( fin.getTotaliPam().getImportoRate(),2));
      assertEquals("Totale Quota Capitale:",0.00,MathUtils.round( fin.getTotaliPam().getQuotaCapitale(),2));
      assertEquals("Totale Quota Interessi:",241023.60,MathUtils.round( fin.getTotaliPam().getQuotaInteressi(),2));
      assertEquals("Totale Quota Erogato:",129675.00,MathUtils.round( fin.getImportoErogato() ,2));
      assertEquals("Ultima rata:", 670.01,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getImpRata(),2));
      assertEquals("Quota Capitale ultima rata:",0.00,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getQuotaCapitale(),2));
      assertEquals("Quota Interessi ultima rata:",669.51,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getQuotaInteressi(),2));
      assertEquals("Quota Spese ultima rata:",0.50,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getQuotaSpese(),2));
      assertEquals("Arrotondamento:",0.00,MathUtils.round( fin.getImportoArrotondamento() ,2));
     
    } catch (Exception e) {
      fail("Eccezione " + e.getMessage());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.