@Test public void install_embedded_version() throws Exception { File toDir = temp.newFolder(); File script = installer.install(Version.create(SonarRunner.DEFAULT_SCANNER_VERSION), toDir, false); assertThat(script).isFile().exists(); assertThat(script.getName()).contains("sonar-scanner"); assertThat(script.getParentFile().getName()).isEqualTo("bin"); assertThat(script.getParentFile().getParentFile().getName()).isEqualTo("sonar-scanner-" + SonarRunner.DEFAULT_SCANNER_VERSION); verify(locators, never()).locate(any(MavenLocation.class)); }
public File install(Version scannerVersion, File toDir, boolean useOldScript) { return install(scannerVersion, null, toDir, useOldScript); }
SonarScannerInstaller { public File install(Version scannerVersion, File toDir, boolean useOldScript) { return install(scannerVersion, null, toDir, useOldScript); } }
SonarScannerInstaller { public File install(Version scannerVersion, File toDir, boolean useOldScript) { return install(scannerVersion, null, toDir, useOldScript); } SonarScannerInstaller(Locators locators); }
SonarScannerInstaller { public File install(Version scannerVersion, File toDir, boolean useOldScript) { return install(scannerVersion, null, toDir, useOldScript); } SonarScannerInstaller(Locators locators); File install(Version scannerVersion, File toDir, boolean useOldScript); File install(Version scannerVersion, @Nullable String classifier, File toDir, boolean useOldScript); }
SonarScannerInstaller { public File install(Version scannerVersion, File toDir, boolean useOldScript) { return install(scannerVersion, null, toDir, useOldScript); } SonarScannerInstaller(Locators locators); File install(Version scannerVersion, File toDir, boolean useOldScript); File install(Version scannerVersion, @Nullable String classifier, File toDir, boolean useOldScript);  }