Package jmav.component

Examples of jmav.component.CalcolatoreMetriche


  public void testNOPAR_5() throws Exception {
    Posizione posizione = UtilTest.getMetodo(MethodWithVaradicParWith1Par);
    assertNotNull(posizione);
    System.out.println("\n\nposizione: "+posizione.getNode());
   
    CalcolatoreMetriche calcolatoreMetriche = new CalcolatoreMetriche();
    Double numberOfParameters = calcolatoreMetriche.calcolaMatrica(Metrica.NOPAR, posizione);
    System.out.println("numberOfParameters: "+numberOfParameters);
    assertEquals(numberOfParameters, 2.0);
  }
View Full Code Here


  public void testNOPAR_6() throws Exception {
    Posizione posizione = UtilTest.getMetodo(MethodWithVaradicParWith2Par);
    assertNotNull(posizione);
    System.out.println("\n\nposizione: "+posizione.getNode());
   
    CalcolatoreMetriche calcolatoreMetriche = new CalcolatoreMetriche();
    Double linesOfCode = calcolatoreMetriche.calcolaMatrica(Metrica.NOPAR, posizione);
    System.out.println("linesOfCode: "+linesOfCode);
    assertEquals(linesOfCode, 3.0);
  }
View Full Code Here

            if(store.getBoolean("BV_LONG_METHOD")) {
              gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LongMethod);
              gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LongMethod, 1, store.getInt("SG_LONG_METHOD"));
            }
           
            CalcolatoreMetriche calcolatoreMetriche = new CalcolatoreMetriche();
           
            final GestoreAnalisi jmav_GestoreAnalisi = new GestoreAnalisi(gestoreImpostazioni, calcolatoreMetriche);
           
            jmav_GestoreAnalisi.avviaAnalisi(jmav_project);
           
View Full Code Here

TOP

Related Classes of jmav.component.CalcolatoreMetriche

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.