Package hudson.plugins.analysis.util.model

Examples of hudson.plugins.analysis.util.model.LineRange


        Iterator<BugAnnotation> annotationIterator = warning.annotationIterator();
        while (annotationIterator.hasNext()) {
            BugAnnotation bugAnnotation = annotationIterator.next();
            if (bugAnnotation instanceof SourceLineAnnotation) {
                SourceLineAnnotation annotation = (SourceLineAnnotation)bugAnnotation;
                bug.addLineRange(new LineRange(annotation.getStartLine(), annotation.getEndLine()));
            }
        }
    }
View Full Code Here


        else if (link.startsWith("source.")) {
            owner.checkPermission(Item.WORKSPACE);

            FileAnnotation annotation = container.getAnnotation(StringUtils.substringAfter(link, "source."));
            if (annotation.isInConsoleLog()) {
                LineRange lines = annotation.getLineRanges().iterator().next();
                return new ConsoleDetail(owner, lines.getStart(), lines.getEnd());
            }
            else {
                return new SourceDetail(owner, annotation, defaultEncoding);
            }
        }
View Full Code Here

     * @throws IOException in case of an IO error
     */
    @Test
    public void splitSingleLine() throws IOException {
        ArrayList<LineRange> lineRanges = new ArrayList<LineRange>();
        lineRanges.add(new LineRange(6));
        split("ExpectedRendering-Line6.html", lineRanges);
    }
View Full Code Here

     * @throws IOException in case of an IO error
     */
    @Test
    public void splitLineRange() throws IOException {
        ArrayList<LineRange> lineRanges = new ArrayList<LineRange>();
        lineRanges.add(new LineRange(6, 12));
        split("ExpectedRendering-Line6-12.html", lineRanges);
    }
View Full Code Here

     * @throws IOException in case of an IO error
     */
    @Test
    public void splitTwoRanges() throws IOException {
        ArrayList<LineRange> lineRanges = new ArrayList<LineRange>();
        lineRanges.add(new LineRange(1, 4));
        lineRanges.add(new LineRange(14, 20));
        split("ExpectedRendering-2-Ranges.html", lineRanges);
    }
View Full Code Here

TOP

Related Classes of hudson.plugins.analysis.util.model.LineRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.