Add non null assertion
This commit is contained in:
parent
9b79d73ce7
commit
69679131b6
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue