@Test public void testGetPomWithComplexMavenProjectShouldSetRepoPath() { String localRepoPath = "./src/test/resources/test-abstractstep/complex-maven-project"; JobStatus jobStatus = new JobStatus(localRepoPath); ProjectInspector mockInspector = ProjectInspectorMocker.mockProjectInspector(jobStatus, localRepoPath); AbstractStep step1 = new AbstractStepNop(mockInspector); String expectedPomPath = localRepoPath+"/a-submodule"; String obtainedPom = step1.getPom(); assertThat(jobStatus.getPomDirPath(), is(expectedPomPath)); }
protected String getPom() { if (!pomLocationTested) { testPomLocation(); this.inspector.getJobStatus().getProperties().getReproductionBuggyBuild() .setProjectRootPomPath(this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE); } return this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE; }
AbstractStep { protected String getPom() { if (!pomLocationTested) { testPomLocation(); this.inspector.getJobStatus().getProperties().getReproductionBuggyBuild() .setProjectRootPomPath(this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE); } return this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE; } }
AbstractStep { protected String getPom() { if (!pomLocationTested) { testPomLocation(); this.inspector.getJobStatus().getProperties().getReproductionBuggyBuild() .setProjectRootPomPath(this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE); } return this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE; } AbstractStep(ProjectInspector inspector, boolean blockingStep);  AbstractStep(ProjectInspector inspector, boolean blockingStep, String name); }
AbstractStep { protected String getPom() { if (!pomLocationTested) { testPomLocation(); this.inspector.getJobStatus().getProperties().getReproductionBuggyBuild() .setProjectRootPomPath(this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE); } return this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE; } AbstractStep(ProjectInspector inspector, boolean blockingStep);  AbstractStep(ProjectInspector inspector, boolean blockingStep, String name); void setBlockingStep(boolean blockingStep); boolean isBlockingStep(); void setNotifiers(List<AbstractNotifier> notifiers); String getName(); void setName(String name); StepStatus getStepStatus(); void setDataSerializer(List<AbstractDataSerializer> serializers); ProjectInspector getInspector(); AbstractStep addNextStep(AbstractStep nextStep); AbstractStep addBranchingStep(BranchingStep nextStep); void addStepError(String error); void addStepError(String error, Throwable exception); void setProjectInspector(ProjectInspector inspector); boolean isShouldStop(); void execute(); Date getDateBegin(); Date getDateEnd(); int getDuration(); RepairnatorConfig getConfig(); }
AbstractStep { protected String getPom() { if (!pomLocationTested) { testPomLocation(); this.inspector.getJobStatus().getProperties().getReproductionBuggyBuild() .setProjectRootPomPath(this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE); } return this.inspector.getJobStatus().getPomDirPath() + File.separator + Utils.POM_FILE; } AbstractStep(ProjectInspector inspector, boolean blockingStep);  AbstractStep(ProjectInspector inspector, boolean blockingStep, String name); void setBlockingStep(boolean blockingStep); boolean isBlockingStep(); void setNotifiers(List<AbstractNotifier> notifiers); String getName(); void setName(String name); StepStatus getStepStatus(); void setDataSerializer(List<AbstractDataSerializer> serializers); ProjectInspector getInspector(); AbstractStep addNextStep(AbstractStep nextStep); AbstractStep addBranchingStep(BranchingStep nextStep); void addStepError(String error); void addStepError(String error, Throwable exception); void setProjectInspector(ProjectInspector inspector); boolean isShouldStop(); void execute(); Date getDateBegin(); Date getDateEnd(); int getDuration(); RepairnatorConfig getConfig();  }