Package jmav.object

Examples of jmav.object.Posizione


 
  @Test
  public void testEsportaRisultatiFileNUll() throws Exception {
    try
    {
      Posizione posizione = UtilTest.getClasse(LOCTest.ClassWith2LinesOfCode);
      OccorrenzaSmell occorrenzaSmell = new OccorrenzaSmell(posizione, true, "LargeClass");
     
      GestoreRisultati gestoreRisultati = new GestoreRisultati();
      gestoreRisultati.restituisciRisultato(occorrenzaSmell);
      assertTrue(true);
View Full Code Here


  }
 
  // CASO 5: Metodo con 1 parametro varadic con 1 parametro normale
  @Test
  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

  @Test
  public void testEsportaRisultatiOnlyClass() throws Exception {
    try
    {
      Posizione posizione = UtilTest.getClasse(LOCTest.ClassWith2LinesOfCode);
      OccorrenzaSmell occorrenzaSmell = new OccorrenzaSmell(posizione, true, "LargeClass");
     
      GestoreRisultati gestoreRisultati = new GestoreRisultati();
      gestoreRisultati.restituisciRisultato(occorrenzaSmell);
      assertTrue(true);
View Full Code Here

 
  @Test
  public void testEsportaRisultatiOnlyMethod() throws Exception {
    try
    {
      Posizione posizione = UtilTest.getMetodo(LOCTest.MethodWith2LinesOfCode);
      OccorrenzaSmell occorrenzaSmell = new OccorrenzaSmell(posizione, true, "LongMethod");
     
      GestoreRisultati gestoreRisultati = new GestoreRisultati();
      gestoreRisultati.restituisciRisultato(occorrenzaSmell);
      assertTrue(true);
View Full Code Here

  }
 
  // CASO 5: Metodo con 1 parametro varadic con 1 parametro normale
  @Test
  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

 
  @Test
  public void testEsportaRisultatiClassAndMethod() throws Exception {
    try
    {
      Posizione posizione = UtilTest.getClasse(LOCTest.ClassWith2LinesOfCode);
      OccorrenzaSmell occorrenzaSmell = new OccorrenzaSmell(posizione, true, "LargeClass");
      Posizione posizione2 = UtilTest.getMetodo(LOCTest.MethodWith2LinesOfCode);
      OccorrenzaSmell occorrenzaSmell2 = new OccorrenzaSmell(posizione2, true, "LongMethod");
     
      GestoreRisultati gestoreRisultati = new GestoreRisultati();
      gestoreRisultati.restituisciRisultato(occorrenzaSmell);
      gestoreRisultati.restituisciRisultato(occorrenzaSmell2);
View Full Code Here

TOP

Related Classes of jmav.object.Posizione

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.