Package org.sonar.api.batch.scm

Examples of org.sonar.api.batch.scm.BlameLine


    when(input.filesToBlame()).thenReturn(Arrays.<InputFile>asList(inputFile));
    new GitBlameCommand(commandExecutor).blame(input, result);
    verify(result).blameResult(
      inputFile,
      Arrays.asList(
        new BlameLine().date(DateUtils.parseDateTime("2011-08-05T10:49:31+0200")).revision("2c68c473da7fc293e12ca50f19380c5118be7ead").author("simon.brandhof@gmail.com"),
        new BlameLine().date(DateUtils.parseDateTime("2011-08-05T10:49:31+0200")).revision("2c68c473da7fc293e12ca50f19380c5118be7ead").author("simon.brandhof@gmail.com")));
  }
View Full Code Here


    InputFile file = new DefaultInputFile("foo", "src/main/java/Foo.java").setLines(10);

    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("Expected one blame result per line but provider returned 1 blame lines while file src/main/java/Foo.java has 10 lines");

    new DefaultBlameOutput(null, Arrays.asList(file)).blameResult(file, Arrays.asList(new BlameLine().revision("1").author("guy")));
  }
View Full Code Here

    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("It was not expected to blame file src/main/java/Foo.java");

    new DefaultBlameOutput(null, Arrays.<InputFile>asList(new DefaultInputFile("foo", "src/main/java/Foo2.java")))
      .blameResult(file, Arrays.asList(new BlameLine().revision("1").author("guy")));
  }
View Full Code Here

TOP

Related Classes of org.sonar.api.batch.scm.BlameLine

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.