Package jmav.component

Examples of jmav.component.GestoreImpostazioni


              }
            });
           
            final JavaProject jmav_project = new JavaProject(jmav_projectpath);
           
            GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
           
            if(store.getBoolean("BV_LARGE_CLASS")) {
              gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
              gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 1, store.getInt("SG_LARGE_CLASS"));
            }
            if(store.getBoolean("BV_LONG_PAR_LIST")) {
              gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LongParameterList);
              gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LongParameterList, 1, store.getInt("SG_LONG_PAR_LIST"));
            }
            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);
View Full Code Here


    try
    {
      String projectpath = "../test-artefatto";
      JavaProject project = new JavaProject(projectpath);
     
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 1, 50);
     
      CalcolatoreMetriche calcolatoreMetriche = new CalcolatoreMetriche();
     
      GestoreAnalisi gestoreAnalisi = new GestoreAnalisi(gestoreImpostazioni, calcolatoreMetriche);
      gestoreAnalisi.avviaAnalisi(project);
View Full Code Here

    try
    {
      String projectpath = "../test-artefatto";
      JavaProject project = new JavaProject(projectpath);
     
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 1, 50);
     
      CalcolatoreMetriche calcolatoreMetriche = new CalcolatoreMetriche();
     
      GestoreAnalisi gestoreAnalisi = new GestoreAnalisi(gestoreImpostazioni, calcolatoreMetriche);
      gestoreAnalisi.avviaAnalisi(project);
View Full Code Here

    try
    {
      String projectpath = "../test-artefatto";
      JavaProject project = new JavaProject(projectpath);
     
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 1, 50);
     
      CalcolatoreMetriche calcolatoreMetriche = new CalcolatoreMetriche();
     
      GestoreAnalisi gestoreAnalisi = new GestoreAnalisi(gestoreImpostazioni, calcolatoreMetriche);
      assertEquals(false, gestoreAnalisi.controllaAnalisiCorrente());
View Full Code Here

    try
    {
      String projectpath = "../test-artefatto";
      JavaProject project = new JavaProject(projectpath);
     
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 1, 50);
     
      CalcolatoreMetriche calcolatoreMetriche = new CalcolatoreMetriche();
     
      GestoreAnalisi gestoreAnalisi = new GestoreAnalisi(gestoreImpostazioni, calcolatoreMetriche);
      gestoreAnalisi.avviaAnalisi(project);
View Full Code Here

public class GestoreImpostazioniTest extends TestCase {
  @Test
  public void testAggiungiIdSmellNull() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(null);
      assertTrue(false);
    } catch(ParameterNotNullException e) {
      assertTrue(true);
    }
  }
View Full Code Here

 
  @Test
  public void testAggiungiIdSmellNonValido() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(4);
      assertTrue(false);
    } catch(ValueNotFoundException e) {
      assertTrue(true);
    }
  }
View Full Code Here

 
  @Test
  public void testAggiungiIdSmellValido() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      assertTrue(true);
      assertEquals(1, gestoreImpostazioni.listaSmell().size());
      assertEquals("LargeClass", gestoreImpostazioni.listaSmell().get(0).getName());
    } catch(ValueNotFoundException e) {
      assertTrue(false);
    }
  }
View Full Code Here

 
  @Test
  public void testRimuoviIdSmellNull() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.rimuoviSmell(null);
      assertTrue(false);
    } catch(ParameterNotNullException e) {
      assertTrue(true);
    }
  }
View Full Code Here

 
  @Test
  public void testRimuoviIdSmellNonValido() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.rimuoviSmell(4);
      assertTrue(false);
    } catch(ValueNotFoundException e) {
      assertTrue(true);
    }
  }
View Full Code Here

TOP

Related Classes of jmav.component.GestoreImpostazioni

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.