Examples of FinanziamentoTradRegSpeseNoTabelleFake


Examples of it.pdor.generatorePdA.domain.FinanziamentoTradRegSpeseNoTabelleFake

  }
 
 

  public void testCalcolaPamTradRegSpeseNoTabelle(){
    Finanziamento fin = new FinanziamentoTradRegSpeseNoTabelleFake();
    try {
      fin = generatorePdAService.calcolaPAM(fin);
      loggamiIlPiano(fin);
      // Valori presi da LEGACY facendo ricalcolare il pam
      assertEquals("Totale Montante:",320428.80,MathUtils.round( fin.getTotaliPam().getQuotaMontante(),2))
      assertEquals("Totale Importo Rata:",322081.20,MathUtils.round( fin.getTotaliPam().getImportoRate(),2));
      assertEquals("Totale Quota Capitale:",125000.00,MathUtils.round( fin.getTotaliPam().getQuotaCapitale(),2));
      assertEquals("Totale Quota Interessi:",195428.80,MathUtils.round( fin.getTotaliPam().getQuotaInteressi(),2));
      assertEquals("Totale Quota Erogato:",120350.00,MathUtils.round( fin.getImportoErogato() ,2));
      assertEquals("Ultima rata:", 894.67,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getImpRata(),2));
      assertEquals("Quota Capitale ultima rata:",883.75,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getQuotaCapitale(),2));
      assertEquals("Quota Interessi ultima rata:",6.33,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getQuotaInteressi(),2));
      assertEquals("Quota Commissioni ultima rata:",0.00,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getQuotaCommissioni(),2));
      assertEquals("Quota spese ultima rata:",4.03,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getQuotaSpese(),2));
      assertEquals("Quota comm gest ultima rata:",0.56,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getQuotaCommGest(),2));     
      assertEquals("Arrotondamento:",0.55,MathUtils.round( fin.getImportoArrotondamento() ,2));
      assertEquals("Finanziato:",125000.00,MathUtils.round( fin.getImportoFinanziato() ,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.