File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/test/java/org/cryptomator/linux/keychain Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3
3
import org .junit .jupiter .api .Assertions ;
4
4
import org .junit .jupiter .api .BeforeAll ;
5
5
import org .junit .jupiter .api .Test ;
6
+ import org .junit .jupiter .api .condition .EnabledIf ;
6
7
import org .junit .jupiter .api .condition .EnabledOnOs ;
7
8
import org .junit .jupiter .api .condition .OS ;
8
9
14
15
* Unit tests for KWallet access via DBUS.
15
16
*/
16
17
@ EnabledOnOs (OS .LINUX )
18
+ @ EnabledIf ("osEnvironmentSuitable" )
17
19
public class KDEWalletKeychainAccessTest {
18
20
19
21
private static boolean isInstalled ;
@@ -40,4 +42,9 @@ public void testIsSupported() {
40
42
KDEWalletKeychainAccess keychainAccess = new KDEWalletKeychainAccess ();
41
43
Assertions .assertEquals (isInstalled , keychainAccess .isSupported ());
42
44
}
45
+
46
+
47
+ private static boolean osEnvironmentSuitable () {
48
+ return System .getenv ().containsKey ("DISPLAY" );
49
+ }
43
50
}
You can’t perform that action at this time.
0 commit comments