Search in sources :

Example 1 with LocatedTreeImpl

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;
}
Also used : LocatedTreeImpl(org.sonar.maven.model.LocatedTreeImpl) XmlLocation(org.sonar.maven.model.XmlLocation)

Example 2 with LocatedTreeImpl

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;
}
Also used : LocatedTreeImpl(org.sonar.maven.model.LocatedTreeImpl) XmlLocation(org.sonar.maven.model.XmlLocation)

Aggregations

LocatedTreeImpl (org.sonar.maven.model.LocatedTreeImpl)2 XmlLocation (org.sonar.maven.model.XmlLocation)2