@Test public void testGetRuleKey() throws Exception { assertNull(sensor.getRuleKey(context, "foo")); assertEquals(RuleKey.of(AnsibleCheckRepository.REPOSITORY_KEY, RULE_ID2), sensor.getRuleKey(context, RULE_ID2)); }
protected RuleKey getRuleKey(SensorContext context, String ruleId) { RuleKey key = AnsibleCheckRepository.getRuleKey(ruleId); return (context.activeRules().find(key) != null)?key:null; }
AbstractAnsibleSensor implements Sensor { protected RuleKey getRuleKey(SensorContext context, String ruleId) { RuleKey key = AnsibleCheckRepository.getRuleKey(ruleId); return (context.activeRules().find(key) != null)?key:null; } }
AbstractAnsibleSensor implements Sensor { protected RuleKey getRuleKey(SensorContext context, String ruleId) { RuleKey key = AnsibleCheckRepository.getRuleKey(ruleId); return (context.activeRules().find(key) != null)?key:null; } protected  AbstractAnsibleSensor(FileSystem fileSystem); }
AbstractAnsibleSensor implements Sensor { protected RuleKey getRuleKey(SensorContext context, String ruleId) { RuleKey key = AnsibleCheckRepository.getRuleKey(ruleId); return (context.activeRules().find(key) != null)?key:null; } protected  AbstractAnsibleSensor(FileSystem fileSystem);  }
AbstractAnsibleSensor implements Sensor { protected RuleKey getRuleKey(SensorContext context, String ruleId) { RuleKey key = AnsibleCheckRepository.getRuleKey(ruleId); return (context.activeRules().find(key) != null)?key:null; } protected  AbstractAnsibleSensor(FileSystem fileSystem);   }