Package org.jpos.iso.packager

Examples of org.jpos.iso.packager.ISOMultiFieldPackager.unpack()


    ISOMultiFieldPackager packager = new ISOMultiFieldPackager(
        "A List choice", list);

    ISOField field = new ISOField();
    packager.unpack(field, raw, 0);

    assertEquals("1234", (String) field.getValue());
  }

  public void testUnpackArray() throws Exception {
View Full Code Here


            new IFB_LLNUM(10, "Should not be this", true),
            new IFE_LLNUM(10, "Should be 041234"),
            new IFB_LLNUM(10, "Should not be this", true) });

    ISOField field = new ISOField();
    packager.unpack(field, raw, 0);

    assertEquals("1234", (String) field.getValue());

  }
 
View Full Code Here

            new IFB_LLNUM(10, "Should not be this", true),
            new IFE_LLNUM(10, "Should be 041234"),
            new IFB_LLNUM(10, "Should not be this", true) });

    ISOField field = new ISOField();
    packager.unpack(field, (InputStream)new ByteArrayInputStream(raw));

    assertEquals("1234", (String) field.getValue());

  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.