Search in sources :

Example 1 with FinderSidebarService

use of ch.cyberduck.core.local.FinderSidebarService in project cyberduck by iterate-ch.

the class SharedFileListApplicationLoginRegistryTest method testRegister.

@Test
@Ignore
public void testRegister() {
    final SharedFileListApplicationLoginRegistry registry = new SharedFileListApplicationLoginRegistry(new LaunchServicesApplicationFinder());
    final Application application = new Application("ch.sudo.cyberduck");
    assertTrue(registry.register(application));
    assertTrue(new FinderSidebarService(SidebarService.List.login).contains(new FinderLocal(NSWorkspace.sharedWorkspace().absolutePathForAppBundleWithIdentifier(application.getIdentifier()))));
    assertTrue(registry.unregister(application));
}
Also used : LaunchServicesApplicationFinder(ch.cyberduck.core.local.LaunchServicesApplicationFinder) FinderLocal(ch.cyberduck.core.local.FinderLocal) Application(ch.cyberduck.core.local.Application) FinderSidebarService(ch.cyberduck.core.local.FinderSidebarService) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

Application (ch.cyberduck.core.local.Application)1 FinderLocal (ch.cyberduck.core.local.FinderLocal)1 FinderSidebarService (ch.cyberduck.core.local.FinderSidebarService)1 LaunchServicesApplicationFinder (ch.cyberduck.core.local.LaunchServicesApplicationFinder)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1