Package it.pdor.generatorePdA.domain

Examples of it.pdor.generatorePdA.domain.FinanziamentoStartupVariabileFake


  }
 
 
  public void testCalcolaPamStartupVariabile() {
   
    Finanziamento fin = new FinanziamentoStartupVariabileFake();
    try {
      fin = generatorePdAService.calcolaPAM(fin);
      loggamiIlPiano(fin);

      assertEquals("Totale Montante:",241896.00,MathUtils.round( fin.getTotaliPam().getQuotaMontante(),2))
      assertEquals("Totale Importo Rata:",243660.00,MathUtils.round( fin.getTotaliPam().getImportoRate(),2));
      assertEquals("Totale Quota Capitale:",150000.00,MathUtils.round( fin.getTotaliPam().getQuotaCapitale(),2));
      assertEquals("Totale Quota Interessi:",93600.00,MathUtils.round( fin.getTotaliPam().getQuotaInteressi(),2));
      assertEquals("Totale Quota Erogato:",148960.00,MathUtils.round( fin.getImportoErogato() ,2));
      assertEquals("Ultima rata:", 700.00,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getImpRata(),2));
      assertEquals("Quota Capitale ultima rata:",696.89,MathUtils.round( fin.getPam().get(fin.getPam().size()-1).getQuotaCapitale(),2));
      assertEquals("Quota Interessi ultima rata:",3.11,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("Arrotondamento:",0.00,MathUtils.round( fin.getImportoArrotondamento() ,2));
         
    } catch (Exception e) {
      fail("Eccezione " + e.getMessage());
    }
  } 
View Full Code Here


        .calcolaImportoFinanziato(f).getImportoFinanziato());
  }

  public void testCalcoloImportoFinanziatoPianoStartUpRataVariabile()
      throws Exception {
    Finanziamento f = new FinanziamentoStartupVariabileFake();

    assertEquals(MathUtils.round(1015.404155870548188, 2),
        calcolatoreimportoFinanziato.calcolaImportoFinanziato(f)
            .getImportoFinanziato());
  }
View Full Code Here

TOP

Related Classes of it.pdor.generatorePdA.domain.FinanziamentoStartupVariabileFake

Copyright © 2018 www.massapicom. 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.