@@ -232,10 +232,9 @@ public void barcode11Test() {
232
232
Assert .assertEquals (BarcodeDataMatrix .DM_NO_ERROR , result );
233
233
}
234
234
235
-
236
235
@ Test
237
236
public void barcode12Test () {
238
- junitExpectedException .expect (IndexOutOfBoundsException .class );;
237
+ junitExpectedException .expect (IndexOutOfBoundsException .class );
239
238
BarcodeDataMatrix barcodeDataMatrix = new BarcodeDataMatrix ();
240
239
barcodeDataMatrix .setWidth (18 );
241
240
barcodeDataMatrix .setHeight (18 );
@@ -245,7 +244,7 @@ public void barcode12Test() {
245
244
246
245
@ Test
247
246
public void barcode13Test () {
248
- junitExpectedException .expect (IndexOutOfBoundsException .class );;
247
+ junitExpectedException .expect (IndexOutOfBoundsException .class );
249
248
BarcodeDataMatrix barcodeDataMatrix = new BarcodeDataMatrix ();
250
249
barcodeDataMatrix .setWidth (18 );
251
250
barcodeDataMatrix .setHeight (18 );
@@ -255,11 +254,21 @@ public void barcode13Test() {
255
254
256
255
@ Test
257
256
public void barcode14Test () {
258
- junitExpectedException .expect (IndexOutOfBoundsException .class );;
257
+ junitExpectedException .expect (IndexOutOfBoundsException .class );
259
258
BarcodeDataMatrix barcodeDataMatrix = new BarcodeDataMatrix ();
260
259
barcodeDataMatrix .setWidth (18 );
261
260
barcodeDataMatrix .setHeight (18 );
262
261
byte [] str = "AbcdFFghijklmnop" .getBytes ();
263
262
barcodeDataMatrix .setCode (str , 0 , -1 );
264
263
}
264
+
265
+ @ Test
266
+ public void barcode15Test () {
267
+ BarcodeDataMatrix barcodeDataMatrix = new BarcodeDataMatrix ();
268
+ barcodeDataMatrix .setWidth (18 );
269
+ barcodeDataMatrix .setHeight (18 );
270
+ byte [] str = "AbcdFFghijklmnop" .getBytes ();
271
+ int result = barcodeDataMatrix .setCode (str , str .length , 0 );
272
+ Assert .assertEquals (BarcodeDataMatrix .DM_NO_ERROR , result );
273
+ }
265
274
}
0 commit comments