@Test public void uninstall() { install(); mgr.uninstall(APP_ID); assertEquals("incorrect app count", 0, mgr.getApplications().size()); }
@Override public void uninstall(ApplicationId appId) { checkNotNull(appId, APP_ID_NULL); updateStoreAndWaitForNotificationHandling(appId, store::remove); }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Override public void uninstall(ApplicationId appId) { checkNotNull(appId, APP_ID_NULL); updateStoreAndWaitForNotificationHandling(appId, store::remove); } }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Override public void uninstall(ApplicationId appId) { checkNotNull(appId, APP_ID_NULL); updateStoreAndWaitForNotificationHandling(appId, store::remove); }  }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Override public void uninstall(ApplicationId appId) { checkNotNull(appId, APP_ID_NULL); updateStoreAndWaitForNotificationHandling(appId, store::remove); }  @Activate void activate(); @Deactivate void deactivate(); @Override Set<Application> getApplications(); @Override ApplicationId getId(String name); @Override Application getApplication(ApplicationId appId); @Override ApplicationState getState(ApplicationId appId); @Override Set<Permission> getPermissions(ApplicationId appId); @Override void registerDeactivateHook(ApplicationId appId, Runnable hook); @Override Application install(InputStream appDescStream); @Override void uninstall(ApplicationId appId); @Override void activate(ApplicationId appId); @Override void deactivate(ApplicationId appId); @Override void setPermissions(ApplicationId appId, Set<Permission> permissions); }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Override public void uninstall(ApplicationId appId) { checkNotNull(appId, APP_ID_NULL); updateStoreAndWaitForNotificationHandling(appId, store::remove); }  @Activate void activate(); @Deactivate void deactivate(); @Override Set<Application> getApplications(); @Override ApplicationId getId(String name); @Override Application getApplication(ApplicationId appId); @Override ApplicationState getState(ApplicationId appId); @Override Set<Permission> getPermissions(ApplicationId appId); @Override void registerDeactivateHook(ApplicationId appId, Runnable hook); @Override Application install(InputStream appDescStream); @Override void uninstall(ApplicationId appId); @Override void activate(ApplicationId appId); @Override void deactivate(ApplicationId appId); @Override void setPermissions(ApplicationId appId, Set<Permission> permissions);  }