diff --git a/src/test/java/com/owncloud/android/ui/adapter/ActivityListAdapterTest.java b/src/test/java/com/owncloud/android/ui/adapter/ActivityListAdapterTest.java index dd7c5859ba..e37cdeb08a 100644 --- a/src/test/java/com/owncloud/android/ui/adapter/ActivityListAdapterTest.java +++ b/src/test/java/com/owncloud/android/ui/adapter/ActivityListAdapterTest.java @@ -28,7 +28,6 @@ import org.junit.Test; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; -import org.mockito.internal.util.reflection.FieldSetter; import java.util.ArrayList; @@ -39,10 +38,10 @@ public final class ActivityListAdapterTest { private ActivityListAdapter activityListAdapter; @Before - public void setUp() throws NoSuchFieldException { + public void setUp() { MockitoAnnotations.initMocks(this); MockitoAnnotations.initMocks(activityListAdapter); - FieldSetter.setField(activityListAdapter, activityListAdapter.getClass().getDeclaredField("values"), new ArrayList<>()); + activityListAdapter.values = new ArrayList<>(); } @Test