Examples of OccorrenzaSmell


Examples of jmav.object.OccorrenzaSmell

          }
        }
       
        if (largeClassBV) {
          if(posizione.getGranularita() == LargeClassAgent.getGranularita()) {
            OccorrenzaSmell occorrenzaSmell = largeClassAgent.getJob().get();
            if(occorrenzaSmell.getName() != null) {
              occorrenzaSmells.add(occorrenzaSmell);
              System.out.println("LargeClassAgent aggiunge "+occorrenzaSmell);
            }
          }
        }
       
        if (longParListBV) {
          if(posizione.getGranularita() == LongParameterListAgent.getGranularita()) {
            OccorrenzaSmell occorrenzaSmell = longParameterListAgent.getJob().get();
            if(occorrenzaSmell.getName() != null) {
              occorrenzaSmells.add(occorrenzaSmell);
              System.out.println("LongParameterListAgent aggiunge "+occorrenzaSmell);
            }
          }
        }
       
        if (longMethodBV) {
          if(posizione.getGranularita() == LongMethodAgent.getGranularita()) {
            OccorrenzaSmell occorrenzaSmell = longMethodAgent.getJob().get();
            if(occorrenzaSmell.getName() != null) {
              occorrenzaSmells.add(occorrenzaSmell);
              System.out.println("LongMethodAgent aggiunge "+occorrenzaSmell);
            }
          }
        }
View Full Code Here

Examples of jmav.object.OccorrenzaSmell

  protected Posizione posizione;
 
  public RilevaSmell(final CalcolatoreMetriche calcolatoreMetriche, String name) {
    Callable<OccorrenzaSmell> call = new Callable<OccorrenzaSmell>() {
            public OccorrenzaSmell call() {
              OccorrenzaSmell smell = null;
        try {
          smell = individuaSmell(calcolatoreMetriche);
        } catch (Exception e) {
          e.printStackTrace();
        }
View Full Code Here

Examples of jmav.object.OccorrenzaSmell

  }

  @Override
  protected OccorrenzaSmell individuaSmell(CalcolatoreMetriche calcolatoreMetriche) throws Exception {
    Double valore = calcolatoreMetriche.calcolaMatrica(getMetrica(), getPosizione());
    return new OccorrenzaSmell(getPosizione(), valore > soglia, nameSmell);
  }
View Full Code Here

Examples of jmav.object.OccorrenzaSmell

  }

  @Override
  protected OccorrenzaSmell individuaSmell(CalcolatoreMetriche calcolatoreMetriche) throws Exception {
    Double valore = calcolatoreMetriche.calcolaMatrica(getMetrica(), getPosizione());
    return new OccorrenzaSmell(getPosizione(), valore > soglia, nameSmell);
  }
View Full Code Here

Examples of jmav.object.OccorrenzaSmell

    super(calcolatoreMetriche, "Rileva Large Class");
  }

  protected OccorrenzaSmell individuaSmell(CalcolatoreMetriche calcolatoreMetriche) throws Exception {
    Double valore = calcolatoreMetriche.calcolaMatrica(getMetrica(), getPosizione());
    return new OccorrenzaSmell(getPosizione(), valore > soglia, nameSmell);
  }
View Full Code Here

Examples of jmav.object.OccorrenzaSmell

          }
        }
       
        if (largeClassBV) {
          if(posizione.getGranularita() == LargeClassAgent.getGranularita()) {
            OccorrenzaSmell occorrenzaSmell = largeClassAgent.getJob().get();
            if(occorrenzaSmell.getName() != null) {
              occorrenzaSmells.add(occorrenzaSmell);
              System.out.println("LargeClassAgent aggiunge "+occorrenzaSmell);
            }
          }
        }
       
        if (longParListBV) {
          if(posizione.getGranularita() == LongParameterListAgent.getGranularita()) {
            OccorrenzaSmell occorrenzaSmell = longParameterListAgent.getJob().get();
            if(occorrenzaSmell.getName() != null) {
              occorrenzaSmells.add(occorrenzaSmell);
              System.out.println("LongParameterListAgent aggiunge "+occorrenzaSmell);
            }
          }
        }
       
        if (longMethodBV) {
          if(posizione.getGranularita() == LongParameterListAgent.getGranularita()) {
            OccorrenzaSmell occorrenzaSmell = longMethodAgent.getJob().get();
            if(occorrenzaSmell.getName() != null) {
              occorrenzaSmells.add(occorrenzaSmell);
              System.out.println("LongParameterListAgent aggiunge "+occorrenzaSmell);
            }
          }
        }
View Full Code Here

Examples of jmav.object.OccorrenzaSmell

          }
        }
       
        if (largeClassBV) {
          if(posizione.getGranularita() == LargeClassAgent.getGranularita()) {
            OccorrenzaSmell occorrenzaSmell = largeClassAgent.getJob().get();
            if(occorrenzaSmell.getName() != null) {
              occorrenzaSmells.add(occorrenzaSmell);
              System.out.println("LargeClassAgent aggiunge "+occorrenzaSmell);
            }
          }
        }
       
        if (longParListBV) {
          if(posizione.getGranularita() == LongParameterListAgent.getGranularita()) {
            OccorrenzaSmell occorrenzaSmell = longParameterListAgent.getJob().get();
            if(occorrenzaSmell.getName() != null) {
              occorrenzaSmells.add(occorrenzaSmell);
              System.out.println("LongParameterListAgent aggiunge "+occorrenzaSmell);
            }
          }
        }
       
        if (longMethodBV) {
          if(posizione.getGranularita() == LongParameterListAgent.getGranularita()) {
            OccorrenzaSmell occorrenzaSmell = longMethodAgent.getJob().get();
            if(occorrenzaSmell.getName() != null) {
              occorrenzaSmells.add(occorrenzaSmell);
              System.out.println("LongParameterListAgent aggiunge "+occorrenzaSmell);
            }
          }
        }
View Full Code Here

Examples of jmav.object.OccorrenzaSmell

  @Test
  public void testRestituisciRisultatoOccorrenzaSmellNotNull() 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);
    } catch(Exception e) {
View Full Code Here

Examples of jmav.object.OccorrenzaSmell

  @Test
  public void testRestituisciRisultatiTrue() 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);
      Object result = gestoreRisultati.restituisciRisultati(true);
View Full Code Here

Examples of jmav.object.OccorrenzaSmell

  @Test
  public void testRestituisciRisultatiFalse() 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);
      Object result = gestoreRisultati.restituisciRisultati(false);
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.