// Path: src/test/java/org/sonar/plugins/stash/TestUtils.java
// public static InputFile inputFile(String moduleKey, String path) {
//   return TestInputFileBuilder.create(moduleKey, path).build();
// }


import static org.sonar.plugins.stash.TestUtils.inputFile;
import java.nio.file.Path;
import javax.annotation.CheckForNull;
import org.sonar.api.batch.fs.InputComponent;
import org.sonar.api.batch.fs.internal.DefaultInputFile;
import org.sonar.api.batch.postjob.issue.PostJobIssue;
import org.sonar.api.batch.rule.Severity;
import org.sonar.api.rule.RuleKey;
package org.sonar.plugins.stash.fixtures;



public class DummyPostJobIssue implements PostJobIssue {
  private final String key;
  private final RuleKey ruleKey;
  private final String componentKey;
  private final Integer line;
  private final String message;
  private final Severity severity;
  private final InputComponent component;

  public DummyPostJobIssue(Path moduleBaseDir, String key, RuleKey ruleKey, String module, String relativePath, Integer line,
      String message, Severity severity) {
    this.key = key;
    this.ruleKey = ruleKey;
    this.componentKey = module + ":" + relativePath;
    this.line = line;
    this.message = message;
    this.severity = severity;
// Path: src/test/java/org/sonar/plugins/stash/TestUtils.java
// public static InputFile inputFile(String moduleKey, String path) {
//   return TestInputFileBuilder.create(moduleKey, path).build();
// }


// Path: src/test/java/org/sonar/plugins/stash/fixtures/DummyPostJobIssue.java
import static org.sonar.plugins.stash.TestUtils.inputFile;
import java.nio.file.Path;
import javax.annotation.CheckForNull;
import org.sonar.api.batch.fs.InputComponent;
import org.sonar.api.batch.fs.internal.DefaultInputFile;
import org.sonar.api.batch.postjob.issue.PostJobIssue;
import org.sonar.api.batch.rule.Severity;
import org.sonar.api.rule.RuleKey;

package org.sonar.plugins.stash.fixtures;



public class DummyPostJobIssue implements PostJobIssue {
  private final String key;
  private final RuleKey ruleKey;
  private final String componentKey;
  private final Integer line;
  private final String message;
  private final Severity severity;
  private final InputComponent component;

  public DummyPostJobIssue(Path moduleBaseDir, String key, RuleKey ruleKey, String module, String relativePath, Integer line,
      String message, Severity severity) {
    this.key = key;
    this.ruleKey = ruleKey;
    this.componentKey = module + ":" + relativePath;
    this.line = line;
    this.message = message;
    this.severity = severity;
    component = inputFile(componentKey, moduleBaseDir, relativePath);