@Test public void getAppNames() throws IOException { saveZippedApp(); Set<String> names = aar.getApplicationNames(); assertEquals("incorrect names", ImmutableSet.of(APP_NAME), names); }
public Set<String> getApplicationNames() { ImmutableSet.Builder<String> names = ImmutableSet.builder(); File[] files = appsDir.listFiles(File::isDirectory); if (files != null) { for (File file : files) { names.add(file.getName()); } } return names.build(); }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public Set<String> getApplicationNames() { ImmutableSet.Builder<String> names = ImmutableSet.builder(); File[] files = appsDir.listFiles(File::isDirectory); if (files != null) { for (File file : files) { names.add(file.getName()); } } return names.build(); } }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public Set<String> getApplicationNames() { ImmutableSet.Builder<String> names = ImmutableSet.builder(); File[] files = appsDir.listFiles(File::isDirectory); if (files != null) { for (File file : files) { names.add(file.getName()); } } return names.build(); }  }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public Set<String> getApplicationNames() { ImmutableSet.Builder<String> names = ImmutableSet.builder(); File[] files = appsDir.listFiles(File::isDirectory); if (files != null) { for (File file : files) { names.add(file.getName()); } } return names.build(); }  String getRootPath(); Set<String> getApplicationNames(); long getUpdateTime(String appName); ApplicationDescription getApplicationDescription(String appName); synchronized ApplicationDescription saveApplication(InputStream stream); synchronized void purgeApplication(String appName); synchronized InputStream getApplicationInputStream(String appName); ApplicationRole getRole(String value); }
ApplicationArchive extends AbstractStore<ApplicationEvent, ApplicationStoreDelegate> { public Set<String> getApplicationNames() { ImmutableSet.Builder<String> names = ImmutableSet.builder(); File[] files = appsDir.listFiles(File::isDirectory); if (files != null) { for (File file : files) { names.add(file.getName()); } } return names.build(); }  String getRootPath(); Set<String> getApplicationNames(); long getUpdateTime(String appName); ApplicationDescription getApplicationDescription(String appName); synchronized ApplicationDescription saveApplication(InputStream stream); synchronized void purgeApplication(String appName); synchronized InputStream getApplicationInputStream(String appName); ApplicationRole getRole(String value);  }