Skip to content

Commit 8de337b

Browse files
committed
Merge pull request square#673 from f2prateek/fail/test
Simply fail if assertion is not thrown
2 parents 88aa367 + 4af667f commit 8de337b

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)