setupData("selectAll");
List<RuleDto> ruleDtos = dao.findAll(session);
assertThat(ruleDtos).hasSize(1);
RuleDto ruleDto = ruleDtos.get(0);
assertThat(ruleDto.getId()).isEqualTo(1);
assertThat(ruleDto.getName()).isEqualTo("Avoid Null");
assertThat(ruleDto.getDescription()).isEqualTo("Should avoid NULL");
assertThat(ruleDto.getDescriptionFormat()).isEqualTo(Format.HTML);
assertThat(ruleDto.getStatus()).isEqualTo(RuleStatus.READY);
assertThat(ruleDto.getRepositoryKey()).isEqualTo("checkstyle");
assertThat(ruleDto.getNoteData()).isEqualTo("Rule note with accents \u00e9\u00e8\u00e0");
assertThat(ruleDto.getSubCharacteristicId()).isEqualTo(100);
assertThat(ruleDto.getDefaultSubCharacteristicId()).isEqualTo(101);
assertThat(ruleDto.getRemediationFunction()).isEqualTo("linear");
assertThat(ruleDto.getDefaultRemediationFunction()).isEqualTo("linear_offset");
assertThat(ruleDto.getRemediationCoefficient()).isEqualTo("1h");
assertThat(ruleDto.getDefaultRemediationCoefficient()).isEqualTo("5d");
assertThat(ruleDto.getRemediationOffset()).isEqualTo("5min");
assertThat(ruleDto.getDefaultRemediationOffset()).isEqualTo("10h");
assertThat(ruleDto.getEffortToFixDescription()).isEqualTo("squid.S115.effortToFix");
}