@Test public void testNonexistingApplication() { PermanentApplicationPackage permanentApplicationPackage = new PermanentApplicationPackage( new ConfigserverConfig(new ConfigserverConfig.Builder().applicationDirectory("_no_such_dir"))); assertFalse(permanentApplicationPackage.applicationPackage().isPresent()); }
public Optional<ApplicationPackage> applicationPackage() { return applicationPackage; }
PermanentApplicationPackage { public Optional<ApplicationPackage> applicationPackage() { return applicationPackage; } }
PermanentApplicationPackage { public Optional<ApplicationPackage> applicationPackage() { return applicationPackage; } PermanentApplicationPackage(ConfigserverConfig config); }
PermanentApplicationPackage { public Optional<ApplicationPackage> applicationPackage() { return applicationPackage; } PermanentApplicationPackage(ConfigserverConfig config); Optional<ApplicationPackage> applicationPackage(); }
PermanentApplicationPackage { public Optional<ApplicationPackage> applicationPackage() { return applicationPackage; } PermanentApplicationPackage(ConfigserverConfig config); Optional<ApplicationPackage> applicationPackage();  }