Package org.sonar.server.debt.DebtModelXMLExporter

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


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

    DebtModel debtModel = new DebtCharacteristicsXMLImporter().importXML(xml);
    assertThat(debtModel.characteristicByKey("NETWORK_USE_EFFICIENCY")).isNull();
    assertThat(debtModel.characteristicByKey("NETWORK_USE")).isNotNull();
  }

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


  public void convert_network_use_key() throws Exception {
    String xml = getFileContent("convert_network_use_key.xml");

    DebtModel debtModel = new DebtCharacteristicsXMLImporter().importXML(xml);
    assertThat(debtModel.characteristicByKey("NETWORK_USE_EFFICIENCY")).isNull();
    assertThat(debtModel.characteristicByKey("NETWORK_USE")).isNotNull();
  }

  @Test
  public void fail_on_bad_xml() throws Exception {
    String xml = getFileContent("fail_on_bad_xml.xml");
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.