File tree Expand file tree Collapse file tree
org/cryptomator/linux/quickaccess
test/java/org/cryptomator/linux/quickaccess Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 provides QuickAccessService with NautilusBookmarks , DolphinPlaces ;
2727
2828 opens org .cryptomator .linux .tray to org .cryptomator .integrations .api ;
29+ opens org .cryptomator .linux .quickaccess to org .cryptomator .integrations .api ;
2930}
Original file line number Diff line number Diff line change 3030 * Implemenation of the {@link QuickAccessService} for KDE desktop environments using Dolphin file browser.
3131 */
3232@ DisplayName ("KDE Dolphin Places" )
33+ @ CheckAvailability
3334@ OperatingSystem (OperatingSystem .Value .LINUX )
3435@ Priority (90 )
3536public class DolphinPlaces implements QuickAccessService {
Original file line number Diff line number Diff line change 11package org .cryptomator .linux .quickaccess ;
22
3+ import org .cryptomator .integrations .common .IntegrationsLoader ;
4+ import org .cryptomator .integrations .quickaccess .QuickAccessService ;
35import org .cryptomator .integrations .quickaccess .QuickAccessServiceException ;
6+ import org .junit .jupiter .api .Assertions ;
47import org .junit .jupiter .api .Disabled ;
58import org .junit .jupiter .api .DisplayName ;
69import org .junit .jupiter .api .Test ;
1114
1215public class DolphinPlacesIT {
1316
17+ @ Test
18+ @ DisplayName ("If dolphin is installed, isSupported returns true and service is contained in the service provider stream" )
19+ @ Disabled
20+ public void testSupport () {
21+ Assertions .assertTrue (DolphinPlaces .isSupported ());
22+
23+ var optionalService = IntegrationsLoader .loadAll (QuickAccessService .class ).filter (s -> s .getClass ().getName ().equals ("org.cryptomator.linux.quickaccess.DolphinPlaces" )).findAny ();
24+ Assertions .assertTrue (optionalService .isPresent ());
25+ }
26+
1427 @ Test
1528 @ DisplayName ("Adds for 20s an entry to the Dolphin sidebar" )
1629 @ Disabled
Original file line number Diff line number Diff line change 11package org .cryptomator .linux .quickaccess ;
22
3+ import org .cryptomator .integrations .common .IntegrationsLoader ;
4+ import org .cryptomator .integrations .quickaccess .QuickAccessService ;
35import org .cryptomator .integrations .quickaccess .QuickAccessServiceException ;
6+ import org .junit .jupiter .api .Assertions ;
47import org .junit .jupiter .api .Disabled ;
58import org .junit .jupiter .api .DisplayName ;
69import org .junit .jupiter .api .Test ;
1114
1215public class NautilusBookmarksIT {
1316
17+ @ Test
18+ @ DisplayName ("If nautilus is installed, isSupported returns true and service is contained in the service provider stream" )
19+ @ Disabled
20+ public void testSupport () {
21+ Assertions .assertTrue (NautilusBookmarks .isSupported ());
22+
23+ var optionalService = IntegrationsLoader .loadAll (QuickAccessService .class ).filter (s -> s .getClass ().getName ().equals ("org.cryptomator.linux.quickaccess.NautilusBookmarks" )).findAny ();
24+ Assertions .assertTrue (optionalService .isPresent ());
25+ }
26+
1427 @ Test
1528 @ DisplayName ("Adds for 20s an entryto the Nautilus sidebar" )
1629 @ Disabled
You can’t perform that action at this time.
0 commit comments