2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 13:17:43 +00:00

Remove leftover mock line

This commit is contained in:
Albert Vaca Cintora 2024-05-13 12:33:31 +02:00
parent c6dbadce21
commit 3e96d5ecd3
No known key found for this signature in database

View File

@ -20,7 +20,6 @@ import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.util.Base64;
import android.util.Log;
import androidx.core.content.ContextCompat;
@ -85,8 +84,6 @@ public class DeviceTest {
mockBase64.when(() -> Base64.encodeToString(any(byte[].class), anyInt())).thenAnswer(invocation -> java.util.Base64.getMimeEncoder().encodeToString((byte[]) invocation.getArguments()[0]));
mockBase64.when(() -> Base64.decode(anyString(), anyInt())).thenAnswer(invocation -> java.util.Base64.getMimeDecoder().decode((String) invocation.getArguments()[0]));
Mockito.mockStatic(Log.class).close();
//Store device information needed to create a Device object in a future
MockSharedPreference deviceSettings = new MockSharedPreference();
SharedPreferences.Editor editor = deviceSettings.edit();