@Test public void constructor_shouldAddBitmapToAttachmentArray() throws Exception { stub(mockContext.getFilesDir()).toReturn(new File("filesDir")); stub(mockContext.openFileOutput(any(String.class), any(int.class))).toReturn(mock(FileOutputStream.class)); subject = new AdAlertReporter(mockContext, mockView, mockAdReport); emailAttachments = subject.getEmailAttachments(); Uri fileUri = Uri.fromFile(new File("filesDir/mp_adalert_screenshot.png")); assertThat(emailAttachments).contains(fileUri); }
@Deprecated ArrayList<Uri> getEmailAttachments() { return mEmailAttachments; }
AdAlertReporter { @Deprecated ArrayList<Uri> getEmailAttachments() { return mEmailAttachments; } }
AdAlertReporter { @Deprecated ArrayList<Uri> getEmailAttachments() { return mEmailAttachments; } AdAlertReporter(final Context context, final View view, @Nullable final AdReport adReport); }
AdAlertReporter { @Deprecated ArrayList<Uri> getEmailAttachments() { return mEmailAttachments; } AdAlertReporter(final Context context, final View view, @Nullable final AdReport adReport); void send(); }
AdAlertReporter { @Deprecated ArrayList<Uri> getEmailAttachments() { return mEmailAttachments; } AdAlertReporter(final Context context, final View view, @Nullable final AdReport adReport); void send();  }