Examples of RuleDao


Examples of kpi.asoiu.dao.RuleDao

import kpi.asoiu.dao.SimpleDAO;

public class DAOFactory {

    public static RuleDao getRuleDAO() {
        return new RuleDao();
    }
View Full Code Here

Examples of org.sonar.core.rule.RuleDao

        .setKey("PORTABILITY")
        .setName("Portability")
        .setParentId(102));

    durations = new Durations(new Settings().setProperty("sonar.technicalDebt.hoursInDay", 8), null);
    ruleDao = new RuleDao(getMyBatis());

    provider = new RulesProvider();
  }
View Full Code Here

Examples of org.sonar.server.rule.db.RuleDao

  public TestDatabase db = new TestDatabase();

  @Test
  public void facade() throws Exception {
    MyBatis myBatis = db.myBatis();
    RuleDao ruleDao = new RuleDao(System2.INSTANCE);
    QualityProfileDao qualityProfileDao = new QualityProfileDao(myBatis, System2.INSTANCE);
    ActiveRuleDao activeRuleDao = new ActiveRuleDao(qualityProfileDao, ruleDao, System2.INSTANCE);

    DbClient client = new DbClient(db.database(), myBatis, ruleDao, activeRuleDao, qualityProfileDao);
View Full Code Here

Examples of org.sonar.server.rule.db.RuleDao

  @Before
  public void before() {
    system = mock(System2.class);
    when(system.now()).thenReturn(DATE1.getTime());
    RuleDao ruleDao = new RuleDao(system);
    ActiveRuleDao activeRuleDao = new ActiveRuleDao(new QualityProfileDao(getMyBatis(), system), ruleDao, system);
    dbClient = new DbClient(getDatabase(), getMyBatis(), ruleDao, activeRuleDao,
      new QualityProfileDao(getMyBatis(), system), new CharacteristicDao(getMyBatis()));
    dbSession = dbClient.openSession(false);
  }
View Full Code Here

Examples of org.sonar.server.rule.db.RuleDao

  ComponentDao componentDao;

  @Before
  public void setUp() throws Exception {
    issueDao = new ProxyIssueDao();
    ruleDao = new RuleDao();
    componentDao = new ComponentDao(System2.INSTANCE);

    session = db.myBatis().openSession(false);
  }
View Full Code Here

Examples of org.sonar.server.rule.db.RuleDao

  CopyRequirementsFromCharacteristicsToRules service;

  @Before
  public void setUp() throws Exception {
    when(system2.now()).thenReturn(DateUtils.parseDate("2014-03-13").getTime());
    dbClient = new DbClient(db.database(), db.myBatis(), new RuleDao(system2), new LoadedTemplateDao(db.myBatis()));
    service = new CopyRequirementsFromCharacteristicsToRules(dbClient, null);
  }
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.