Examples of aggiungiSmell()


Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

            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"));
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

            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"));
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

            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();
           
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

    {
      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);
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

    {
      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);
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

    {
      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);
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

    {
      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);
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @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

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @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

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

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