Package org.sonar.api.batch.debt.internal

Examples of org.sonar.api.batch.debt.internal.DefaultDebtCharacteristic


  @Before
  public void setUp() throws Exception {
    DefaultDebtModel debtModel = new DefaultDebtModel();
    debtModel.addCharacteristic(
      new DefaultDebtCharacteristic().setId(1)
        .setKey("MEMORY_EFFICIENCY")
        .setName("Memory use")
        .setOrder(1)
    );
    debtModel.addSubCharacteristic(
      new DefaultDebtCharacteristic().setId(2)
        .setKey("EFFICIENCY")
        .setName("Efficiency")
        .setParentId(1),
      "MEMORY_EFFICIENCY"
    );
View Full Code Here


      }
    });
  }

  private static DebtCharacteristic toDebtCharacteristic(CharacteristicDto characteristic) {
    return new DefaultDebtCharacteristic()
      .setId(characteristic.getId())
      .setKey(characteristic.getKey())
      .setName(characteristic.getName())
      .setOrder(characteristic.getOrder())
      .setParentId(characteristic.getParentId());
View Full Code Here

  RulesProvider provider;

  @Before
  public void setUp() throws Exception {
    debtModel = new DefaultDebtModel()
      .addCharacteristic(new DefaultDebtCharacteristic()
        .setId(100)
        .setKey("MEMORY_EFFICIENCY")
        .setName("Memory use")
        .setOrder(1))
      .addCharacteristic(new DefaultDebtCharacteristic()
        .setId(101)
        .setKey("EFFICIENCY")
        .setName("Efficiency")
        .setParentId(100));
    debtModel
      .addCharacteristic(new DefaultDebtCharacteristic()
        .setId(102)
        .setKey("COMPILER_RELATED_PORTABILITY")
        .setName("Compiler")
        .setOrder(1))
      .addCharacteristic(new DefaultDebtCharacteristic()
        .setId(103)
        .setKey("PORTABILITY")
        .setName("Portability")
        .setParentId(102));
View Full Code Here

TOP

Related Classes of org.sonar.api.batch.debt.internal.DefaultDebtCharacteristic

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.