Package org.jpos.iso.packager

Examples of org.jpos.iso.packager.Base1_BITMAP126


    @Test
    public void testUnpackThrowsNegativeArraySizeException() throws Throwable {
        byte[] bytes = new byte[0];
        InputStream in = new ByteArrayInputStream(bytes);
        try {
            new Base1_BITMAP126(-1, "testISOFieldPackagerDescription").unpack(new IFB_AMOUNT().createComponent(100), in);
            fail("Expected NegativeArraySizeException to be thrown");
        } catch (NegativeArraySizeException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertEquals("(ByteArrayInputStream) in.available()", 0, in.available());
        }
View Full Code Here

TOP

Related Classes of org.jpos.iso.packager.Base1_BITMAP126

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.