Skip to content

Commit

Permalink
add static import for com.owncloud.android.lib.resources.activities.m…
Browse files Browse the repository at this point in the history
…odel.Activity;

Signed-off-by: alex <alex.plutta@googlemail.com>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
  • Loading branch information
AlexNi245 authored and AndyScherzinger committed Aug 20, 2019
1 parent 4ea9667 commit 0ac5a8b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.owncloud.android.ui.adapter;

import com.owncloud.android.lib.resources.activities.model.Activity;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
Expand All @@ -26,7 +28,7 @@ public void setUp() throws NoSuchFieldException {
@Test
public void isHeader__ObjectIsHeader_ReturnTrue() {
Object header = "Hello";
Object activity = Mockito.mock(com.owncloud.android.lib.resources.activities.model.Activity.class);
Object activity = Mockito.mock(Activity.class);

Mockito.when(activityListAdapter.isHeader(0)).thenCallRealMethod();
Mockito.when(activityListAdapter.getItemViewType(0)).thenCallRealMethod();
Expand All @@ -41,7 +43,7 @@ public void isHeader__ObjectIsHeader_ReturnTrue() {
@Test
public void isHeader__ObjectIsActivity_ReturnFalse() {
Object header = "Hello";
Object activity = Mockito.mock(com.owncloud.android.lib.resources.activities.model.Activity.class);
Object activity = Mockito.mock(Activity.class);

Mockito.when(activityListAdapter.isHeader(1)).thenCallRealMethod();
Mockito.when(activityListAdapter.getItemViewType(1)).thenCallRealMethod();
Expand Down

0 comments on commit 0ac5a8b

Please sign in to comment.