File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed
org/cryptomator/linux/quickaccess
test/java/org/cryptomator/linux/quickaccess Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 26
26
provides QuickAccessService with NautilusBookmarks , DolphinPlaces ;
27
27
28
28
opens org .cryptomator .linux .tray to org .cryptomator .integrations .api ;
29
+ opens org .cryptomator .linux .quickaccess to org .cryptomator .integrations .api ;
29
30
}
Original file line number Diff line number Diff line change 30
30
* Implemenation of the {@link QuickAccessService} for KDE desktop environments using Dolphin file browser.
31
31
*/
32
32
@ DisplayName ("KDE Dolphin Places" )
33
+ @ CheckAvailability
33
34
@ OperatingSystem (OperatingSystem .Value .LINUX )
34
35
@ Priority (90 )
35
36
public class DolphinPlaces implements QuickAccessService {
Original file line number Diff line number Diff line change 1
1
package org .cryptomator .linux .quickaccess ;
2
2
3
+ import org .cryptomator .integrations .common .IntegrationsLoader ;
4
+ import org .cryptomator .integrations .quickaccess .QuickAccessService ;
3
5
import org .cryptomator .integrations .quickaccess .QuickAccessServiceException ;
6
+ import org .junit .jupiter .api .Assertions ;
4
7
import org .junit .jupiter .api .Disabled ;
5
8
import org .junit .jupiter .api .DisplayName ;
6
9
import org .junit .jupiter .api .Test ;
11
14
12
15
public class DolphinPlacesIT {
13
16
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
+
14
27
@ Test
15
28
@ DisplayName ("Adds for 20s an entry to the Dolphin sidebar" )
16
29
@ Disabled
Original file line number Diff line number Diff line change 1
1
package org .cryptomator .linux .quickaccess ;
2
2
3
+ import org .cryptomator .integrations .common .IntegrationsLoader ;
4
+ import org .cryptomator .integrations .quickaccess .QuickAccessService ;
3
5
import org .cryptomator .integrations .quickaccess .QuickAccessServiceException ;
6
+ import org .junit .jupiter .api .Assertions ;
4
7
import org .junit .jupiter .api .Disabled ;
5
8
import org .junit .jupiter .api .DisplayName ;
6
9
import org .junit .jupiter .api .Test ;
11
14
12
15
public class NautilusBookmarksIT {
13
16
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
+
14
27
@ Test
15
28
@ DisplayName ("Adds for 20s an entryto the Nautilus sidebar" )
16
29
@ Disabled
You can’t perform that action at this time.
0 commit comments