"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "javase/src/test/java/com/google/zxing/client/j2se/DecodeWorkerTestCase.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).

DecodeWorkerTestCase.java  (zxing-zxing-3.4.1):DecodeWorkerTestCase.java  (zxing-zxing-3.5.0)
skipping to change at line 39 skipping to change at line 39
* Tests {@link DecodeWorker}. * Tests {@link DecodeWorker}.
*/ */
public final class DecodeWorkerTestCase extends Assert { public final class DecodeWorkerTestCase extends Assert {
static final String IMAGE_DATA_URI = static final String IMAGE_DATA_URI =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAhAQAAAAB/n//CAAAAkkl EQVR42mP4DwQNDJjkB4" + "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAhAQAAAAB/n//CAAAAkkl EQVR42mP4DwQNDJjkB4" +
"E77A0M369N/d7A8CV6rjiQjPMFkWG1QPL7RVGg%2BAfREKCa/5/vA9V/nFSQ3sDwb7/KdiDJq X4dSH4pXN/A8DfyDVD2" + "E77A0M369N/d7A8CV6rjiQjPMFkWG1QPL7RVGg%2BAfREKCa/5/vA9V/nFSQ3sDwb7/KdiDJq X4dSH4pXN/A8DfyDVD2" +
"988HQPUfPVaqA0XKz%2BgD9bIk1AP1fgwvB7KlS9VBdqXbA82PT9AH2fiaH2SXGdDM71fDgeI fhIvKsbkTTAIAKYVr0N" + "988HQPUfPVaqA0XKz%2BgD9bIk1AP1fgwvB7KlS9VBdqXbA82PT9AH2fiaH2SXGdDM71fDgeI fhIvKsbkTTAIAKYVr0N" +
"z5IloAAAAASUVORK5CYII="; "z5IloAAAAASUVORK5CYII=";
static final String IMAGE_NOBARCODE_DATA_URI =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1B
MVE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4C+06gOQB1oHgnEA
SosZZ9VYFQvLqp837vO" +
"NnsAqQdwXg3oeTI+DzOXDn8DLcZo8OdwF4vwqaZW4BXdiRrAPxuRkewE3gC7wxa+/hITfGlXk
XdrQebJHkoLvICBBbJO" +
"PG+BsvlQEeAbAfZydccCI//jrMnOExxMDrWtYWT4iI/LiTtQYtGIsybwd7GLMOKB84UqUDrxb
zNe+hJeNNY+F2AbYJlp" +
"r2BKQX6UvR1U/AbpP5aXebQLKipRIQxlJUknr8GYPdZu5FINGSpNSPRsVZcVhYyu+5H5vMxVM
IJZHW+5VJ2UxiqTArep" +
"NZcXaUGIlnYAaS0sR1lG5O+X4tjiuWUT2yhXBW5DlwWA3PktPNo8RN8sZN3MT1RwFtrMO0FNa
CoXzVDyTper8WVF17IO" +
"OWaUsLTDWsTfIyc+eXr6EuWS+oM/shX9CWhKmGeVPRtHxcMtqIbIqpOmNKAxnaS1/E+migDR3
nJGnR0GDR+A23fMFDA8" +
"6WRQAAAABJRU5ErkJggg==";
@Test @Test
public void testWorker() throws Exception { public void testWorker() throws Exception {
DecoderConfig config = new DecoderConfig(); DecoderConfig config = new DecoderConfig();
JCommander jCommander = new JCommander(config); JCommander jCommander = new JCommander(config);
jCommander.parse("--pure_barcode", IMAGE_DATA_URI); jCommander.parse("--pure_barcode", IMAGE_DATA_URI);
Queue<URI> inputs = new LinkedList<>(Collections.singletonList(new URI(IMAGE _DATA_URI))); Queue<URI> inputs = new LinkedList<>(Collections.singletonList(new URI(IMAGE _DATA_URI)));
DecodeWorker worker = new DecodeWorker(config, inputs); DecodeWorker worker = new DecodeWorker(config, inputs);
assertEquals(1, worker.call().intValue()); assertEquals(1, worker.call().intValue());
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 37 lines changed or added

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