Skip to content

Commit 4af667f

Browse files
committed
Simply fail if assertion is not thrown
1 parent 88aa367 commit 4af667f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

picasso/src/test/java/com/squareup/picasso/PicassoTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,8 @@ public class PicassoTest {
187187
boolean caught = false;
188188
try {
189189
picasso.complete(hunter);
190-
} catch (AssertionError error) {
191-
caught = true;
192-
}
193-
if (!caught) {
194190
fail("Calling complete() with null LoadedFrom should throw");
191+
} catch (AssertionError expected) {
195192
}
196193
}
197194

0 commit comments

Comments
 (0)