@Test public void testGetNonNull() { final ImageLoader.ImageListener listener = mock(ImageLoader.ImageListener.class); imageLoader.get("http: listener, 0, 0); verify(queue).add(any(ImageRequest.class)); }
@Override public ImageContainer get(@Nullable final String requestUrl, @NonNull final ImageListener imageListener, final int maxWidth, final int maxHeight) { if (requestUrl == null) { final ImageContainer container = new ImageContainer(null, null, null, null); imageListener.onResponse(container, true); return container; } return super.get(requestUrl, imageListener, maxWidth, maxHeight); }
NullSafeImageLoader extends ImageLoader { @Override public ImageContainer get(@Nullable final String requestUrl, @NonNull final ImageListener imageListener, final int maxWidth, final int maxHeight) { if (requestUrl == null) { final ImageContainer container = new ImageContainer(null, null, null, null); imageListener.onResponse(container, true); return container; } return super.get(requestUrl, imageListener, maxWidth, maxHeight); } }
NullSafeImageLoader extends ImageLoader { @Override public ImageContainer get(@Nullable final String requestUrl, @NonNull final ImageListener imageListener, final int maxWidth, final int maxHeight) { if (requestUrl == null) { final ImageContainer container = new ImageContainer(null, null, null, null); imageListener.onResponse(container, true); return container; } return super.get(requestUrl, imageListener, maxWidth, maxHeight); } NullSafeImageLoader(@NonNull final RequestQueue queue,
					@NonNull final ImageCache imageCache); }
NullSafeImageLoader extends ImageLoader { @Override public ImageContainer get(@Nullable final String requestUrl, @NonNull final ImageListener imageListener, final int maxWidth, final int maxHeight) { if (requestUrl == null) { final ImageContainer container = new ImageContainer(null, null, null, null); imageListener.onResponse(container, true); return container; } return super.get(requestUrl, imageListener, maxWidth, maxHeight); } NullSafeImageLoader(@NonNull final RequestQueue queue,
					@NonNull final ImageCache imageCache); @Override ImageContainer get(@Nullable final String requestUrl,
					@NonNull final ImageListener imageListener,
					final int maxWidth, final int maxHeight); }
NullSafeImageLoader extends ImageLoader { @Override public ImageContainer get(@Nullable final String requestUrl, @NonNull final ImageListener imageListener, final int maxWidth, final int maxHeight) { if (requestUrl == null) { final ImageContainer container = new ImageContainer(null, null, null, null); imageListener.onResponse(container, true); return container; } return super.get(requestUrl, imageListener, maxWidth, maxHeight); } NullSafeImageLoader(@NonNull final RequestQueue queue,
					@NonNull final ImageCache imageCache); @Override ImageContainer get(@Nullable final String requestUrl,
					@NonNull final ImageListener imageListener,
					final int maxWidth, final int maxHeight);  }