Changed the file naming (i.e. remove -rule and -values)

This commit is contained in:
Luca Frosini 2019-11-25 10:54:01 +01:00
parent 26afb0a5a4
commit c2d006b996
67 changed files with 2 additions and 2 deletions

View File

@ -71,12 +71,12 @@ public class TestRules {
public void testRule(String rulePrefix) throws Exception {
File rulesDirectory = getRulesDirectory();
File rulesFile = new File(rulesDirectory, rulePrefix + "-rule.json");
File rulesFile = new File(rulesDirectory, rulePrefix + ".json");
ObjectMapper mapper = DSMapper.getObjectMapper();
MatcherReplace matcherReplace = mapper.readValue(rulesFile, MatcherReplace.class);
Replacer replacer = matcherReplace.getReplacer();
File elaborationFile = new File(rulesDirectory,rulePrefix + "-values.csv");
File elaborationFile = new File(rulesDirectory,rulePrefix + ".csv");
try(BufferedReader br = new BufferedReader(new FileReader(elaborationFile))) {
for(String line; (line = br.readLine()) != null;) {
String[] splittedLine = line.split(",");