Search in sources :

Example 1 with OneDReader

use of com.google.zxing.oned.OneDReader in project zxing by zxing.

the class RSSExpandedStackedInternalTestCase method testCompleteDecode.

@Test
public void testCompleteDecode() throws Exception {
    OneDReader rssExpandedReader = new RSSExpandedReader();
    BinaryBitmap binaryMap = TestCaseUtil.getBinaryBitmap("src/test/resources/blackbox/rssexpandedstacked-2/1000.png");
    Result result = rssExpandedReader.decode(binaryMap);
    assertEquals("(01)98898765432106(3202)012345(15)991231", result.getText());
}
Also used : OneDReader(com.google.zxing.oned.OneDReader) BinaryBitmap(com.google.zxing.BinaryBitmap) Result(com.google.zxing.Result) Test(org.junit.Test)

Aggregations

BinaryBitmap (com.google.zxing.BinaryBitmap)1 Result (com.google.zxing.Result)1 OneDReader (com.google.zxing.oned.OneDReader)1 Test (org.junit.Test)1