diff --git a/java-keyring/src/test/java/com/github/javakeyring/kde/KWalletBackendTest.java b/java-keyring/src/test/java/com/github/javakeyring/kde/KWalletBackendTest.java index 2411320..a68b460 100644 --- a/java-keyring/src/test/java/com/github/javakeyring/kde/KWalletBackendTest.java +++ b/java-keyring/src/test/java/com/github/javakeyring/kde/KWalletBackendTest.java @@ -27,8 +27,6 @@ package com.github.javakeyring.kde; import com.github.javakeyring.BackendNotSupportedException; -import com.github.javakeyring.Keyring; -import com.github.javakeyring.KeyringStorageType; import com.github.javakeyring.PasswordAccessException; import com.github.javakeyring.internal.KeyringBackend; import com.github.javakeyring.internal.freedesktop.FreedesktopKeyringBackend; @@ -64,7 +62,12 @@ public void testSetup() throws Exception { */ @Test public void testPasswordFlow() throws Exception { - assumeTrue(Platform.isLinux() && Keyring.create().getKeyringStorageType() == KeyringStorageType.KWALLET); + assumeTrue(Platform.isLinux()); + //try (KeyringBackend be = new FreedesktopKeyringBackend()) { + // fail("Should throw a BackendNotSupportedException"); + //} catch (BackendNotSupportedException ex) { + // assumeTrue(ex != null); + //} KeyringBackend backend = new KWalletBackend(); catchThrowable(() -> backend.deletePassword(SERVICE, ACCOUNT)); checkExistenceOfPasswordEntry(backend);