@Test public void TestCollectJob () { scanner.collectJob(704352008, "javierron/failingProject"); verify(collector, times(1)).handle(anyString(), anyString()); }
protected void collectJob(int id, String slug){ LOGGER.info("===== COLLECTING FOR DATA: " + id); Optional<BuildV2> build = buildHelper.fromIdV2(id); if (!build.isPresent()) return; String sha = build.get().getCommit().getSha(); collector.handle(slug, sha); collected.add(id); }
ZeroScanner implements Runnable { protected void collectJob(int id, String slug){ LOGGER.info("===== COLLECTING FOR DATA: " + id); Optional<BuildV2> build = buildHelper.fromIdV2(id); if (!build.isPresent()) return; String sha = build.get().getCommit().getSha(); collector.handle(slug, sha); collected.add(id); } }
ZeroScanner implements Runnable { protected void collectJob(int id, String slug){ LOGGER.info("===== COLLECTING FOR DATA: " + id); Optional<BuildV2> build = buildHelper.fromIdV2(id); if (!build.isPresent()) return; String sha = build.get().getCommit().getSha(); collector.handle(slug, sha); collected.add(id); } ZeroScanner(); }
ZeroScanner implements Runnable { protected void collectJob(int id, String slug){ LOGGER.info("===== COLLECTING FOR DATA: " + id); Optional<BuildV2> build = buildHelper.fromIdV2(id); if (!build.isPresent()) return; String sha = build.get().getCommit().getSha(); collector.handle(slug, sha); collected.add(id); } ZeroScanner(); static void main(String[] args); @Override void run(); }
ZeroScanner implements Runnable { protected void collectJob(int id, String slug){ LOGGER.info("===== COLLECTING FOR DATA: " + id); Optional<BuildV2> build = buildHelper.fromIdV2(id); if (!build.isPresent()) return; String sha = build.get().getCommit().getSha(); collector.handle(slug, sha); collected.add(id); } ZeroScanner(); static void main(String[] args); @Override void run();  }