DefaultJobManagerConfiguration implements JobManagerConfiguration { @Override public File getStorage() { if (this.store == null) { String localRepositoryPath = this.configuration.get().getProperty("job.statusFolder"); if (localRepositoryPath == null) { this.store = new File(getHome(), "status/"); } else { this.store = new File(localRepositoryPath); } } return this.store; }  @Override File getStorage(); @Override int getJobStatusCacheSize(); @Override int getGroupedJobInitializerCacheSize(); @Override long getSingleJobThreadKeepAliveTime(); @Override long getGroupedJobThreadKeepAliveTime();  }
@Test void getStorageWithProperty() { when(this.configurationSource.getProperty("job.statusFolder")).thenReturn(this.directory.toString()); assertEquals(this.directory.getAbsoluteFile(), this.configuration.getStorage().getAbsoluteFile()); }
@Test void getStorageWithoutProperty() { assertEquals(new File(this.permDir, "jobs/status/").getAbsoluteFile(), this.configuration.getStorage().getAbsoluteFile()); }