Examples of PropertyDto


Examples of org.sonar.core.properties.PropertyDto

  }

  @Test
  public void renaming_is_applied_to_default_profile_properties() {
    QualityProfileDto p1 = factory.create(dbSession, new QProfileName("xoo", "P1"));
    db.propertiesDao().setProperty(new PropertyDto().setKey("sonar.profile.xoo").setValue("P1"), dbSession);
    db.propertiesDao().setProperty(new PropertyDto().setKey("sonar.profile.java").setValue("P1"), dbSession);
    db.propertiesDao().setProperty(new PropertyDto().setKey("sonar.profile.js").setValue("JS1"), dbSession);
    dbSession.commit();
    dbSession.clearCache();

    factory.rename(p1.getKey(), "P2");
    dbSession.clearCache();
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.