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

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


    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();
  }

  @Test
  public void get_characteristic_by_key() throws Exception {
View Full Code Here


      .setCreatedAt(new Date())
      .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.