Skip to content

Commit 3cd4533

Browse files
fix(test): Add throws clause
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 6a12650 commit 3cd4533

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/test/java/it/niedermann/owncloud/notes/persistence/NotesServerSyncTaskTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import com.nextcloud.android.sso.api.ParsedResponse;
2525
import com.nextcloud.android.sso.exceptions.NextcloudFilesAppAccountNotFoundException;
26+
import com.nextcloud.android.sso.exceptions.NextcloudNetworkException;
2627
import com.nextcloud.android.sso.model.SingleSignOnAccount;
2728

2829
import org.junit.Before;
@@ -87,7 +88,7 @@ public void testPushLocalChanges() {
8788
}
8889

8990
@Test
90-
public void testPullRemoteChanges() {
91+
public void testPullRemoteChanges() throws NextcloudNetworkException {
9192
when(repo.getAccountById(anyLong())).thenReturn(account);
9293
when(repo.getIdMap(anyLong())).thenReturn(Map.of(1000L, 1L, 2000L, 2L));
9394
when(repo.updateIfNotModifiedLocallyAndAnyRemoteColumnHasChanged(anyLong(), anyLong(), anyString(), anyBoolean(), anyString(), anyString(), anyString(), anyString())).thenReturn(1);

0 commit comments

Comments
 (0)