use of org.sonar.maven.model.LocatedTreeImpl in project sonar-java by SonarSource.
the class PomCheckContextImplTest method fakeLocatedTreeWithUnknownColumn.
private static LocatedTree fakeLocatedTreeWithUnknownColumn(int line) {
LocatedTreeImpl tree = new LocatedTreeImpl() {
};
tree.setStartLocation(new XmlLocation(line, 0));
tree.setEndLocation(new XmlLocation(line, 0));
return tree;
}
use of org.sonar.maven.model.LocatedTreeImpl in project sonar-java by SonarSource.
the class PomCheckContextImplTest method fakeLocatedTree.
private static LocatedTree fakeLocatedTree(int line, int column, int size) {
LocatedTreeImpl tree = new LocatedTreeImpl() {
};
tree.setStartLocation(new XmlLocation(line, column, 0));
tree.setEndLocation(new XmlLocation(line, column + size, size));
return tree;
}
Aggregations