@Test public void test_failure_without_log() { XPathCheck check = new XPathCheck(); check.setExpression(" logTester.clear(); logTester.setLevel(LoggerLevel.INFO); SonarXmlCheckVerifier.verifyNoIssue("../xPathFailure.xml", check); assertThat(logTester.getLogs()).isEmpty(); logTester.clear(); logTester.setLevel(LoggerLevel.DEBUG); SonarXmlCheckVerifier.verifyNoIssue("../xPathFailure.xml", check); assertThat(logTester.getLogs()).isNotEmpty(); }
public void setExpression(String expression) { this.expression = expression; }
XPathCheck extends SonarXmlCheck { public void setExpression(String expression) { this.expression = expression; } }
XPathCheck extends SonarXmlCheck { public void setExpression(String expression) { this.expression = expression; }  }
XPathCheck extends SonarXmlCheck { public void setExpression(String expression) { this.expression = expression; }  @Override void scanFile(XmlFile file); void setExpression(String expression); void setFilePattern(String filePattern); void setMessage(String message); }
XPathCheck extends SonarXmlCheck { public void setExpression(String expression) { this.expression = expression; }  @Override void scanFile(XmlFile file); void setExpression(String expression); void setFilePattern(String filePattern); void setMessage(String message); static final String RULE_KEY; }