summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2020-07-23 17:08:21 +0200
committercyBerta <cyberta@riseup.net>2020-07-23 17:08:21 +0200
commit0d2c7adabfe0b6863163051c53dc8c9c6852ec40 (patch)
treeab3de4904bdff8c786ac8c4bcd0f9268f7178559 /app
parent7b5ad7e802aae82b69ed8ecd916916e6545f01f2 (diff)
clean up PreferenceHelperTest after removal of providerInSharedPreferences method
Diffstat (limited to 'app')
-rw-r--r--app/src/test/java/se/leap/bitmaskclient/PreferenceHelperTest.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/src/test/java/se/leap/bitmaskclient/PreferenceHelperTest.java b/app/src/test/java/se/leap/bitmaskclient/PreferenceHelperTest.java
index d49fa08c..edac3480 100644
--- a/app/src/test/java/se/leap/bitmaskclient/PreferenceHelperTest.java
+++ b/app/src/test/java/se/leap/bitmaskclient/PreferenceHelperTest.java
@@ -6,18 +6,14 @@ import org.junit.Before;
import org.junit.Test;
import se.leap.bitmaskclient.testutils.MockSharedPreferences;
-import se.leap.bitmaskclient.utils.ConfigHelper;
-import se.leap.bitmaskclient.utils.PreferenceHelper;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
-import static se.leap.bitmaskclient.Constants.PROVIDER_CONFIGURED;
import static se.leap.bitmaskclient.Constants.PROVIDER_EIP_DEFINITION;
import static se.leap.bitmaskclient.Constants.PROVIDER_PRIVATE_KEY;
import static se.leap.bitmaskclient.Constants.PROVIDER_VPN_CERTIFICATE;
import static se.leap.bitmaskclient.testutils.TestSetupHelper.getInputAsString;
import static se.leap.bitmaskclient.utils.PreferenceHelper.getSavedProviderFromSharedPreferences;
-import static se.leap.bitmaskclient.utils.PreferenceHelper.providerInSharedPreferences;
/**
* Created by cyberta on 17.01.18.
@@ -33,17 +29,6 @@ public class PreferenceHelperTest {
}
@Test
- public void providerInSharedPreferences_notInPreferences_returnsFalse() throws Exception {
- assertFalse(providerInSharedPreferences(mockPreferences));
- }
-
- @Test
- public void providerInSharedPreferences_inPreferences_returnsTrue() throws Exception {
- mockPreferences.edit().putBoolean(PROVIDER_CONFIGURED, true).apply();
- assertTrue(providerInSharedPreferences(mockPreferences));
- }
-
- @Test
public void getSavedProviderFromSharedPreferences_notInPreferences_returnsDefaultProvider() throws Exception {
Provider provider = getSavedProviderFromSharedPreferences(mockPreferences);
assertFalse(provider.isConfigured());