Changed the file naming (i.e. remove -rule and -values)
This commit is contained in:
parent
26afb0a5a4
commit
c2d006b996
|
@ -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(",");
|
||||
|
|
Loading…
Reference in New Issue