Examples of aggiungiSmell()


Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @Test
  public void testRimuoviIdSmellValido() 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());
      gestoreImpostazioni.rimuoviSmell(GestoreImpostazioni.LargeClass);
      assertTrue(true);
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @Test
  public void testListaSmell() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LongParameterList);
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LongMethod);
      assertTrue(true);
      assertEquals(3, gestoreImpostazioni.listaSmell().size());
      assertEquals("LargeClass", gestoreImpostazioni.listaSmell().get(0).getName());
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  public void testListaSmell() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LongParameterList);
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LongMethod);
      assertTrue(true);
      assertEquals(3, gestoreImpostazioni.listaSmell().size());
      assertEquals("LargeClass", gestoreImpostazioni.listaSmell().get(0).getName());
      assertEquals("LongParameterList", gestoreImpostazioni.listaSmell().get(1).getName());
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LongParameterList);
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LongMethod);
      assertTrue(true);
      assertEquals(3, gestoreImpostazioni.listaSmell().size());
      assertEquals("LargeClass", gestoreImpostazioni.listaSmell().get(0).getName());
      assertEquals("LongParameterList", gestoreImpostazioni.listaSmell().get(1).getName());
      assertEquals("LongMethod", gestoreImpostazioni.listaSmell().get(2).getName());
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @Test
  public void testListaSoglieIdSmellValido() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      assertTrue(true);
      assertEquals(1, gestoreImpostazioni.listaSoglie(GestoreImpostazioni.LargeClass).size());
      assertEquals(Integer.MAX_VALUE, gestoreImpostazioni.listaSoglie(GestoreImpostazioni.LargeClass).get(0).intValue());
    } catch(ValueNotFoundException e) {
      assertTrue(false);
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @Test
  public void testGetSogliaIdSmellValidoAndIdSogliaNull() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.getSoglia(GestoreImpostazioni.LargeClass, null).intValue();
      assertTrue(false);
    } catch(ParameterNotNullException e) {
      assertTrue(true);
    }
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @Test
  public void testGetSogliaIdSmellValidoAndIdSogliaNonValida() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      gestoreImpostazioni.getSoglia(GestoreImpostazioni.LargeClass, 2).intValue();
      assertTrue(false);
    } catch(ValueNotFoundException e) {
      assertTrue(true);
    }
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @Test
  public void testGetSogliaIdSmellValidoAndIdSogliaValida() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      assertTrue(true);
      assertEquals(Integer.MAX_VALUE, gestoreImpostazioni.getSoglia(GestoreImpostazioni.LargeClass, 1).intValue());
    } catch(ValueNotFoundException e) {
      assertTrue(false);
    }
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @Test
  public void testModificaSogliaIdSmellValidoAndIdSogliaNull() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      assertEquals(Integer.MAX_VALUE, gestoreImpostazioni.getSoglia(GestoreImpostazioni.LargeClass, 1).intValue());
      gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, null, 10);
      assertTrue(false);
    } catch(ParameterNotNullException e) {
      assertTrue(true);
View Full Code Here

Examples of jmav.component.GestoreImpostazioni.aggiungiSmell()

  @Test
  public void testModificaSogliaIdSmellValidoAndIdSogliaNonValida() throws Exception {
    try
    {
      GestoreImpostazioni gestoreImpostazioni = new GestoreImpostazioni();
      gestoreImpostazioni.aggiungiSmell(GestoreImpostazioni.LargeClass);
      assertEquals(Integer.MAX_VALUE, gestoreImpostazioni.getSoglia(GestoreImpostazioni.LargeClass, 1).intValue());
      gestoreImpostazioni.modificaSoglia(GestoreImpostazioni.LargeClass, 2, 10);
      assertTrue(false);
    } catch(ValueNotFoundException e) {
      assertTrue(true);
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.