boolean[] allowed) {
String agentsString= agents[0];
for (int i= 1; i < agents.length; i++)
agentsString= agentsString + "," + agents[i];
RobotRulesParser p= new RobotRulesParser(agents);
RobotRuleSet rules= p.parseRules(ROBOTS_STRINGS[robotsString] != null
? ROBOTS_STRINGS[robotsString].getBytes()
: null);
for (int i= 0; i < paths.length; i++) {
assertTrue("testing robots file "+robotsString+", on agents ("
+ agentsString + "), and path " + TEST_PATHS[i] + "; got "
+ rules.isAllowed(TEST_PATHS[i]) + ", rules are: " + LF
+ rules,
rules.isAllowed(TEST_PATHS[i]) == allowed[i]);
}
}