mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Commit shared preferences, clear instead of deleting.
This commit is contained in:
@@ -54,7 +54,8 @@ public class PasswordControllerImplTest extends BrambleMockTestCase {
|
||||
oneOf(briarPrefs).edit();
|
||||
will(returnValue(editor));
|
||||
oneOf(editor).putString("key", newEncryptedHex);
|
||||
oneOf(editor).apply();
|
||||
will(returnValue(editor));
|
||||
oneOf(editor).commit();
|
||||
}});
|
||||
|
||||
PasswordControllerImpl p = new PasswordControllerImpl(briarPrefs,
|
||||
|
||||
@@ -81,7 +81,8 @@ public class SetupControllerImplTest extends BrambleMockTestCase {
|
||||
oneOf(briarPrefs).edit();
|
||||
will(returnValue(editor));
|
||||
oneOf(editor).putString("key", encryptedHex);
|
||||
oneOf(editor).apply();
|
||||
will(returnValue(editor));
|
||||
oneOf(editor).commit();
|
||||
}});
|
||||
|
||||
SetupControllerImpl s = new SetupControllerImpl(briarPrefs,
|
||||
|
||||
Reference in New Issue
Block a user