use of org.sonar.plugins.web.visitor.WebSourceCode in project sonar-web by SonarSource.
the class AvoidHtmlCommentCheckTest method should_not_detect_on_xml_documents.
@Test
public void should_not_detect_on_xml_documents() {
WebSourceCode sourceCode = TestHelper.scan(new File("src/test/resources/checks/AvoidHtmlCommentCheck/document.xml"), new AvoidHtmlCommentCheck());
checkMessagesVerifier.verify(sourceCode.getIssues());
}
use of org.sonar.plugins.web.visitor.WebSourceCode in project sonar-web by SonarSource.
the class AvoidHtmlCommentCheckTest method should_detect_on_php_documents.
@Test
public void should_detect_on_php_documents() {
WebSourceCode sourceCode = TestHelper.scan(new File("src/test/resources/checks/AvoidHtmlCommentCheck/document.php"), new AvoidHtmlCommentCheck());
checkMessagesVerifier.verify(sourceCode.getIssues()).next().atLine(6).withMessage("Remove this comment or change its style so that it is not output to the client.");
}
use of org.sonar.plugins.web.visitor.WebSourceCode in project sonar-web by SonarSource.
the class AvoidHtmlCommentCheckTest method should_not_detect_on_xhtml_documents.
@Test
public void should_not_detect_on_xhtml_documents() {
WebSourceCode sourceCode = TestHelper.scan(new File("src/test/resources/checks/AvoidHtmlCommentCheck/document.xhtml"), new AvoidHtmlCommentCheck());
checkMessagesVerifier.verify(sourceCode.getIssues());
}
use of org.sonar.plugins.web.visitor.WebSourceCode in project sonar-web by SonarSource.
the class AvoidHtmlCommentCheckTest method should_not_detect_on_html5_documents.
@Test
public void should_not_detect_on_html5_documents() {
WebSourceCode sourceCode = TestHelper.scan(new File("src/test/resources/checks/AvoidHtmlCommentCheck/documenthtml5.html"), new AvoidHtmlCommentCheck());
checkMessagesVerifier.verify(sourceCode.getIssues());
}
use of org.sonar.plugins.web.visitor.WebSourceCode in project sonar-web by SonarSource.
the class AvoidHtmlCommentCheckTest method should_not_detect_on_html_documents.
@Test
public void should_not_detect_on_html_documents() {
WebSourceCode sourceCode = TestHelper.scan(new File("src/test/resources/checks/AvoidHtmlCommentCheck/document.html"), new AvoidHtmlCommentCheck());
checkMessagesVerifier.verify(sourceCode.getIssues());
}
Aggregations