Package org.sonar.api.technicaldebt.batch.internal

Examples of org.sonar.api.technicaldebt.batch.internal.DefaultCharacteristic.key()


  public void get_characteristics() throws Exception {
    assertThat(sqaleModel.rootCharacteristics()).hasSize(1);

    DefaultCharacteristic resultRootCharacteristic = sqaleModel.rootCharacteristics().get(0);
    assertThat(resultRootCharacteristic.id()).isEqualTo(1);
    assertThat(resultRootCharacteristic.key()).isEqualTo("MEMORY_EFFICIENCY");
    assertThat(resultRootCharacteristic.name()).isEqualTo("Memory use");
    assertThat(resultRootCharacteristic.order()).isEqualTo(1);
    assertThat(resultRootCharacteristic.children()).hasSize(1);
    assertThat(resultRootCharacteristic.parent()).isNull();
    assertThat(resultRootCharacteristic.root()).isNull();
View Full Code Here


      .setUpdatedAt(new Date());

    DefaultCharacteristic characteristic = dto.toCharacteristic(rootCharacteristic);
    assertThat(characteristic.id()).isEqualTo(2);
    assertThat(characteristic.parent()).isEqualTo(rootCharacteristic);
    assertThat(characteristic.key()).isEqualTo("EFFICIENCY");
    assertThat(characteristic.name()).isEqualTo("Efficiency");
    assertThat(characteristic.order()).isEqualTo(5);
    assertThat(characteristic.createdAt()).isNotNull();
    assertThat(characteristic.updatedAt()).isNotNull();
  }
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.