Skip to content

Commit

Permalink
Fix tests for better coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vvechkanov committed Apr 6, 2020
1 parent 353d355 commit 8d49a1d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -398,14 +398,14 @@ public void cleanDirectoryWhenFileListIsNullOrEmpty() {
AppCenterLog.debug(anyString(), anyString());

/* Verify when file list is null. */
when(pendingFolder.listFiles()).thenReturn(new File[] {});
when(pendingFolder.listFiles()).thenReturn(null);
ErrorLogHelper.cleanDirectory(pendingFolder);
verifyStatic(never());
AppCenterLog.debug(anyString(), anyString());
}

@Test
public void cleanDirectoryWhenDirectoryIsNullOrNotDirectory() {
public void cleanDirectoryWhenNotDirectory() {

/* Prepare data. */
File pendingFolder = mock(File.class);
Expand Down

0 comments on commit 8d49a1d

Please sign in to comment.