use of org.eclipse.mylyn.wikitext.validation.ValidationProblem in project mylyn.docs by eclipse.
the class CommentValidationRuleTest method testFail2.
public void testFail2() {
String markup = "a <!--- bogus comment ----->";
ValidationProblem problem = rule.findProblem(markup, 0, markup.length());
assertNotNull(problem);
int offset = problem.getOffset() + problem.getLength();
problem = rule.findProblem(markup, offset, markup.length() - offset);
assertNotNull(problem);
assertEquals(22, problem.getOffset());
assertEquals(6, problem.getLength());
}
use of org.eclipse.mylyn.wikitext.validation.ValidationProblem in project mylyn.docs by eclipse.
the class CommentValidationRuleTest method testFail1.
public void testFail1() {
String markup = "a <!--- bogus comment -->";
ValidationProblem problem = rule.findProblem(markup, 0, markup.length());
assertNotNull(problem);
assertEquals(2, problem.getOffset());
assertEquals(5, problem.getLength());
}
Aggregations