@Test public void TestAttemptJob () { scanner.attemptJob(702053045); verify(rtScanner, times(1)).submitBuildToExecution(any(Build.class)); }
protected void attemptJob(int id){ LOGGER.info("===== ATTEMPT REPAIR: " + id); Optional<Build> build = buildHelper.fromId(id); if (!build.isPresent()) return; this.rtScanner.submitBuildToExecution(build.get()); attempted.add(id); }
ZeroScanner implements Runnable { protected void attemptJob(int id){ LOGGER.info("===== ATTEMPT REPAIR: " + id); Optional<Build> build = buildHelper.fromId(id); if (!build.isPresent()) return; this.rtScanner.submitBuildToExecution(build.get()); attempted.add(id); } }
ZeroScanner implements Runnable { protected void attemptJob(int id){ LOGGER.info("===== ATTEMPT REPAIR: " + id); Optional<Build> build = buildHelper.fromId(id); if (!build.isPresent()) return; this.rtScanner.submitBuildToExecution(build.get()); attempted.add(id); } ZeroScanner(); }
ZeroScanner implements Runnable { protected void attemptJob(int id){ LOGGER.info("===== ATTEMPT REPAIR: " + id); Optional<Build> build = buildHelper.fromId(id); if (!build.isPresent()) return; this.rtScanner.submitBuildToExecution(build.get()); attempted.add(id); } ZeroScanner(); static void main(String[] args); @Override void run(); }
ZeroScanner implements Runnable { protected void attemptJob(int id){ LOGGER.info("===== ATTEMPT REPAIR: " + id); Optional<Build> build = buildHelper.fromId(id); if (!build.isPresent()) return; this.rtScanner.submitBuildToExecution(build.get()); attempted.add(id); } ZeroScanner(); static void main(String[] args); @Override void run();  }