@Test public void testGetAnsibleLintPath() { assertEquals("ansible-lint", sensor.getAnsibleLintPath(context)); context.settings().appendProperty(AnsibleSettings.ANSIBLE_LINT_PATH_KEY, "/usr/bin/ansible-lint"); assertEquals("/usr/bin/ansible-lint", sensor.getAnsibleLintPath(context)); }
protected String getAnsibleLintPath(SensorContext context) { Optional<String> path = context.config().get(AnsibleSettings.ANSIBLE_LINT_PATH_KEY); return (path.isPresent())?path.get():"ansible-lint"; }
AbstractAnsibleSensor implements Sensor { protected String getAnsibleLintPath(SensorContext context) { Optional<String> path = context.config().get(AnsibleSettings.ANSIBLE_LINT_PATH_KEY); return (path.isPresent())?path.get():"ansible-lint"; } }
AbstractAnsibleSensor implements Sensor { protected String getAnsibleLintPath(SensorContext context) { Optional<String> path = context.config().get(AnsibleSettings.ANSIBLE_LINT_PATH_KEY); return (path.isPresent())?path.get():"ansible-lint"; } protected  AbstractAnsibleSensor(FileSystem fileSystem); }
AbstractAnsibleSensor implements Sensor { protected String getAnsibleLintPath(SensorContext context) { Optional<String> path = context.config().get(AnsibleSettings.ANSIBLE_LINT_PATH_KEY); return (path.isPresent())?path.get():"ansible-lint"; } protected  AbstractAnsibleSensor(FileSystem fileSystem);  }
AbstractAnsibleSensor implements Sensor { protected String getAnsibleLintPath(SensorContext context) { Optional<String> path = context.config().get(AnsibleSettings.ANSIBLE_LINT_PATH_KEY); return (path.isPresent())?path.get():"ansible-lint"; } protected  AbstractAnsibleSensor(FileSystem fileSystem);   }