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