|
37 | 37 | import static com.squareup.picasso.BitmapHunter.forRequest;
|
38 | 38 | import static com.squareup.picasso.BitmapHunter.transformResult;
|
39 | 39 | import static com.squareup.picasso.Picasso.LoadedFrom.MEMORY;
|
40 |
| -import static com.squareup.picasso.Picasso.Priority.LOW; |
41 | 40 | import static com.squareup.picasso.Picasso.Priority.HIGH;
|
| 41 | +import static com.squareup.picasso.Picasso.Priority.LOW; |
42 | 42 | import static com.squareup.picasso.Picasso.Priority.NORMAL;
|
43 | 43 | import static com.squareup.picasso.TestUtils.ASSET_KEY_1;
|
44 | 44 | import static com.squareup.picasso.TestUtils.ASSET_URI_1;
|
|
47 | 47 | import static com.squareup.picasso.TestUtils.CONTACT_URI_1;
|
48 | 48 | import static com.squareup.picasso.TestUtils.CONTENT_1_URL;
|
49 | 49 | import static com.squareup.picasso.TestUtils.CONTENT_KEY_1;
|
| 50 | +import static com.squareup.picasso.TestUtils.CUSTOM_URI; |
| 51 | +import static com.squareup.picasso.TestUtils.CUSTOM_URI_KEY; |
50 | 52 | import static com.squareup.picasso.TestUtils.FILE_1_URL;
|
51 | 53 | import static com.squareup.picasso.TestUtils.FILE_KEY_1;
|
52 | 54 | import static com.squareup.picasso.TestUtils.MEDIA_STORE_CONTENT_1_URL;
|
|
59 | 61 | import static com.squareup.picasso.TestUtils.RESOURCE_TYPE_URI_KEY;
|
60 | 62 | import static com.squareup.picasso.TestUtils.URI_1;
|
61 | 63 | import static com.squareup.picasso.TestUtils.URI_KEY_1;
|
62 |
| -import static com.squareup.picasso.TestUtils.CUSTOM_URI; |
63 |
| -import static com.squareup.picasso.TestUtils.CUSTOM_URI_KEY; |
64 | 64 | import static com.squareup.picasso.TestUtils.mockAction;
|
65 |
| -import static com.squareup.picasso.TestUtils.mockHunter; |
66 | 65 | import static com.squareup.picasso.TestUtils.mockImageViewTarget;
|
67 | 66 | import static com.squareup.picasso.TestUtils.mockPicasso;
|
68 | 67 | import static org.fest.assertions.api.ANDROID.assertThat;
|
@@ -171,8 +170,9 @@ public class BitmapHunterTest {
|
171 | 170 |
|
172 | 171 | @Test public void huntUnrecognizedUri() throws Exception {
|
173 | 172 | Action action = mockAction(CUSTOM_URI_KEY, CUSTOM_URI);
|
| 173 | + BitmapHunter hunder = forRequest(picasso, dispatcher, cache, stats, action); |
174 | 174 | try {
|
175 |
| - forRequest(picasso, dispatcher, cache, stats, action); |
| 175 | + hunder.hunt(); |
176 | 176 | fail("Unrecognized URI should throw exception.");
|
177 | 177 | } catch (IllegalStateException expected) {
|
178 | 178 | }
|
|
0 commit comments