Examples of characteristics()


Examples of org.sonar.api.batch.debt.DebtModel.characteristics()

      .setParentId(1);

    when(dao.selectEnabledCharacteristics()).thenReturn(newArrayList(rootCharacteristicDto, characteristicDto));

    DebtModel result = provider.provide(dao);
    assertThat(result.characteristics()).hasSize(1);

    DebtCharacteristic characteristic = result.characteristicByKey("MEMORY_EFFICIENCY");
    assertThat(characteristic.key()).isEqualTo("MEMORY_EFFICIENCY");
    assertThat(characteristic.name()).isEqualTo("Memory use");
    assertThat(characteristic.isSub()).isFalse();
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.