fix broken unit tests

fixes #4534
// FREEBIE
This commit is contained in:
Jake McGinty
2015-11-16 12:15:15 -08:00
committed by Moxie Marlinspike
parent 36426a74c1
commit 487f8cbb38
2 changed files with 31 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
package org.thoughtcrime.securesms.jobs;
import android.content.Context;
import org.junit.Before;
import org.junit.Test;
import org.thoughtcrime.securesms.BaseUnitTest;
@@ -19,7 +17,7 @@ public class AttachmentDownloadJobTest extends BaseUnitTest {
@Override
public void setUp() throws Exception {
super.setUp();
job = new AttachmentDownloadJob(mock(Context.class), 1L, new AttachmentId(1L, 1L));
job = new AttachmentDownloadJob(context, 1L, new AttachmentId(1L, 1L));
}
@Test(expected = InvalidPartException.class)