Add non null assertion

This commit is contained in:
ligi 2015-03-08 22:55:10 +01:00
parent 9b79d73ce7
commit 69679131b6

View file

@ -59,6 +59,7 @@ public class TheBarcodeHelper extends InstrumentationTestCase {
try {
Bitmap tested2 = BarcodeHelper.generateBarCodeBitmap("foo-data", format, 42);
assertNotNull(tested2);
assertThat(tested2.getWidth()).isGreaterThanOrEqualTo(42);
} catch (Exception e) {
fail("could not create barcode " + e);