Examples of calcolaMatrica()


Examples of jmav.component.CalcolatoreMetriche.calcolaMatrica()

    Posizione posizione = UtilTest.getMetodo(MethodWithNLinesOfCodeMultiLineComment);
    assertNotNull(posizione);
    System.out.println("\n\nposizione: "+posizione.getNode());
   
    CalcolatoreMetriche calcolatoreMetriche = new CalcolatoreMetriche();
    Double linesOfCode = calcolatoreMetriche.calcolaMatrica(Metrica.LOC, posizione);
    System.out.println("linesOfCode: "+linesOfCode);
    assertEquals(3.0, linesOfCode);
  }
 
  // CASO 9: Metodo abstract
View Full Code Here

Examples of jmav.component.CalcolatoreMetriche.calcolaMatrica()

    Posizione posizione = UtilTest.getMetodo(MethodWithAbstract);
    assertNotNull(posizione);
    System.out.println("\n\nposizione: "+posizione.getNode());
   
    CalcolatoreMetriche calcolatoreMetriche = new CalcolatoreMetriche();
    Double linesOfCode = calcolatoreMetriche.calcolaMatrica(Metrica.LOC, posizione);
    System.out.println("linesOfCode: "+linesOfCode);
    assertEquals(1.0, linesOfCode);
  }
}
View Full Code Here

Examples of jmav.component.CalcolatoreMetriche.calcolaMatrica()

    Posizione posizione = UtilTest.getMetodo(MethodWith0Par);
    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, 0.0);
  }
 
  // CASO 2: Metodo con 1 parametro
View Full Code Here

Examples of jmav.component.CalcolatoreMetriche.calcolaMatrica()

    Posizione posizione = UtilTest.getMetodo(MethodWith1Par);
    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, 1.0);
  }
 
  // CASO 3: Metodo con N parametri
View Full Code Here

Examples of jmav.component.CalcolatoreMetriche.calcolaMatrica()

    Posizione posizione = UtilTest.getMetodo(MethodWithNPar);
    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);
  }
 
  // CASO 4: Metodo con 1 parametro varadic
View Full Code Here

Examples of jmav.component.CalcolatoreMetriche.calcolaMatrica()

    Posizione posizione = UtilTest.getMetodo(MethodWithVaradicPar);
    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, 1.0);
  }
 
  // CASO 5: Metodo con 1 parametro varadic con 1 parametro normale
View Full Code Here

Examples of jmav.component.CalcolatoreMetriche.calcolaMatrica()

    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);
  }
 
  // CASO 5: Metodo con 1 parametro varadic con 1 parametro normale
View Full Code Here

Examples of jmav.component.CalcolatoreMetriche.calcolaMatrica()

    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
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.