Examples of rootCharacteristics()


Examples of org.sonar.server.debt.DebtModelXMLExporter.DebtModel.rootCharacteristics()

  @Test
  public void import_characteristics() throws Exception {
    String xml = getFileContent("import_characteristics.xml");

    DebtModel debtModel = new DebtCharacteristicsXMLImporter().importXML(xml);
    List<DebtCharacteristic> rootCharacteristics = debtModel.rootCharacteristics();

    assertThat(rootCharacteristics).hasSize(2);
    assertThat(rootCharacteristics.get(0).key()).isEqualTo("PORTABILITY");
    assertThat(rootCharacteristics.get(0).name()).isEqualTo("Portability");
    assertThat(rootCharacteristics.get(0).order()).isEqualTo(1);
View Full Code Here

Examples of org.sonar.server.debt.DebtModelXMLExporter.DebtModel.rootCharacteristics()

  @Test
  public void import_badly_formatted_xml() throws Exception {
    String xml = getFileContent("import_badly_formatted_xml.xml");

    DebtModel debtModel = new DebtCharacteristicsXMLImporter().importXML(xml);
    List<DebtCharacteristic> rootCharacteristics = debtModel.rootCharacteristics();

    // characteristics
    assertThat(rootCharacteristics).hasSize(2);
    assertThat(rootCharacteristics.get(0).key()).isEqualTo("USABILITY");
    assertThat(rootCharacteristics.get(0).name()).isEqualTo("Usability");
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.