"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/test/java/com/google/zxing/multi/qrcode/MultiQRCodeTestCase.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

MultiQRCodeTestCase.java  (zxing-zxing-3.4.1):MultiQRCodeTestCase.java  (zxing-zxing-3.5.0)
skipping to change at line 69 skipping to change at line 69
Collection<String> barcodeContents = new HashSet<>(); Collection<String> barcodeContents = new HashSet<>();
for (Result result : results) { for (Result result : results) {
barcodeContents.add(result.getText()); barcodeContents.add(result.getText());
assertEquals(BarcodeFormat.QR_CODE, result.getBarcodeFormat()); assertEquals(BarcodeFormat.QR_CODE, result.getBarcodeFormat());
assertNotNull(result.getResultMetadata()); assertNotNull(result.getResultMetadata());
} }
Collection<String> expectedContents = new HashSet<>(); Collection<String> expectedContents = new HashSet<>();
expectedContents.add("You earned the class a 5 MINUTE DANCE PARTY!! Awesome ! Way to go! Let's boogie!"); expectedContents.add("You earned the class a 5 MINUTE DANCE PARTY!! Awesome ! Way to go! Let's boogie!");
expectedContents.add("You earned the class 5 EXTRA MINUTES OF RECESS!! Fabu lous!! Way to go!!"); expectedContents.add("You earned the class 5 EXTRA MINUTES OF RECESS!! Fabu lous!! Way to go!!");
expectedContents.add("You get to SIT AT MRS. SIGMON'S DESK FOR A DAY!! Awes expectedContents.add(
ome!! Way to go!! Guess I better clean up! :)"); "You get to SIT AT MRS. SIGMON'S DESK FOR A DAY!! Awesome!! Way to go!
! Guess I better clean up! :)");
expectedContents.add("You get to CREATE OUR JOURNAL PROMPT FOR THE DAY! Yay ! Way to go! "); expectedContents.add("You get to CREATE OUR JOURNAL PROMPT FOR THE DAY! Yay ! Way to go! ");
assertEquals(expectedContents, barcodeContents); assertEquals(expectedContents, barcodeContents);
} }
@Test @Test
public void testProcessStructuredAppend() { public void testProcessStructuredAppend() {
Result sa1 = new Result("SA1", new byte[]{}, new ResultPoint[]{}, BarcodeFor mat.QR_CODE); Result sa1 = new Result("SA1", new byte[]{}, new ResultPoint[]{}, BarcodeFor mat.QR_CODE);
Result sa2 = new Result("SA2", new byte[]{}, new ResultPoint[]{}, BarcodeFor mat.QR_CODE); Result sa2 = new Result("SA2", new byte[]{}, new ResultPoint[]{}, BarcodeFor mat.QR_CODE);
Result sa3 = new Result("SA3", new byte[]{}, new ResultPoint[]{}, BarcodeFor mat.QR_CODE); Result sa3 = new Result("SA3", new byte[]{}, new ResultPoint[]{}, BarcodeFor mat.QR_CODE);
sa1.putMetadata(ResultMetadataType.STRUCTURED_APPEND_SEQUENCE, 2); sa1.putMetadata(ResultMetadataType.STRUCTURED_APPEND_SEQUENCE, 2);
 End of changes. 1 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)