@Test public void configure_java_home() throws Exception { File dir = temp.newFolder(); FileSystem underTest = new FileSystem(homeDir, Configuration.builder().setProperty("java.home", dir.getCanonicalPath()).build()); verifySameDirs(underTest.javaHome(), dir); }
@CheckForNull public File javaHome() { return javaHome; }
FileSystem { @CheckForNull public File javaHome() { return javaHome; } }
FileSystem { @CheckForNull public File javaHome() { return javaHome; } FileSystem(File homeDir, Configuration config); }
FileSystem { @CheckForNull public File javaHome() { return javaHome; } FileSystem(File homeDir, Configuration config); File mavenLocalRepository(); @CheckForNull File mavenHome(); @CheckForNull File antHome(); @CheckForNull File javaHome(); File getOrchestratorHome(); File getCacheDir(); File getSonarQubeZipsDir(); File workspace(); }
FileSystem { @CheckForNull public File javaHome() { return javaHome; } FileSystem(File homeDir, Configuration config); File mavenLocalRepository(); @CheckForNull File mavenHome(); @CheckForNull File antHome(); @CheckForNull File javaHome(); File getOrchestratorHome(); File getCacheDir(); File getSonarQubeZipsDir(); File workspace();  }