File tree Expand file tree Collapse file tree
src/test/java/org/cryptomator/linux/keychain Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Assertions ;
44import org .junit .jupiter .api .BeforeAll ;
55import org .junit .jupiter .api .Test ;
6+ import org .junit .jupiter .api .condition .EnabledIf ;
67import org .junit .jupiter .api .condition .EnabledOnOs ;
78import org .junit .jupiter .api .condition .OS ;
89
1415 * Unit tests for KWallet access via DBUS.
1516 */
1617@ EnabledOnOs (OS .LINUX )
18+ @ EnabledIf ("osEnvironmentSuitable" )
1719public class KDEWalletKeychainAccessTest {
1820
1921 private static boolean isInstalled ;
@@ -40,4 +42,9 @@ public void testIsSupported() {
4042 KDEWalletKeychainAccess keychainAccess = new KDEWalletKeychainAccess ();
4143 Assertions .assertEquals (isInstalled , keychainAccess .isSupported ());
4244 }
45+
46+
47+ private static boolean osEnvironmentSuitable () {
48+ return System .getenv ().containsKey ("DISPLAY" );
49+ }
4350}
You can’t perform that action at this time.
0 commit comments