Package org.jpos.iso

Examples of org.jpos.iso.IFE_LLNUM


public class ISOMultiFieldPackagerTest extends TestCase {
 
  public void testPackList() throws Exception {
    Vector list = new Vector();
    list.add(new IFB_LLNUM(10, "Should not be this", true));
    list.add(new IFE_LLNUM(10, "Should be 041234"));
    list.add(new IFB_LLNUM(10, "The one to pack", true));

    ISOMultiFieldPackager packager = new ISOMultiFieldPackager(
        "Should be 041234", list);
   
View Full Code Here


  public void testPackArray() throws Exception {

    ISOMultiFieldPackager packager = new ISOMultiFieldPackager(
        "Should be 041234", new ISOFieldPackager[] {
            new IFB_LLNUM(10, "Should not be this", true),
            new IFE_LLNUM(10, "Should be 041234"),
            new IFB_LLNUM(10, "The one to pack", true) });
   
    packager.hint("The one to pack");

    ISOField field = new ISOField(12, "1234");
View Full Code Here

  public void testPackNoHintFail() throws Exception {

    ISOMultiFieldPackager packager = new ISOMultiFieldPackager(
        "Should be 041234", new ISOFieldPackager[] {
            new IFB_LLNUM(10, "Should not be this", true),
            new IFE_LLNUM(10, "Should be 041234"),
            new IFB_LLNUM(10, "The one to pack", true) });
    // packager.hint("The one to pack");

    ISOField field = new ISOField(12, "1234");
View Full Code Here

    list.add(new IFB_LLNUM(10, "Should not be this", true));
    list.add(new IFB_LLNUM(10, "Should not be this", true));
    list.add(new IFB_LLNUM(10, "Should not be this", true));
    list.add(new IFB_LLNUM(10, "Should not be this", true));
    list.add(new IFB_LLNUM(10, "Should not be this", true));
    list.add(new IFE_LLNUM(10, "Should be 041234"));
    list.add(new IFB_LLNUM(10, "Should not be this", true));

    ISOMultiFieldPackager packager = new ISOMultiFieldPackager(
        "A List choice", list);
View Full Code Here

        (byte) 0xF2, (byte) 0xF3, (byte) 0xF4 };

    ISOMultiFieldPackager packager = new ISOMultiFieldPackager(
        "An Array choice", new ISOFieldPackager[] {
            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);
View Full Code Here

        (byte) 0xF2, (byte) 0xF3, (byte) 0xF4 };
   
    ISOMultiFieldPackager packager = new ISOMultiFieldPackager(
        "An Array choice", new ISOFieldPackager[] {
            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));
View Full Code Here

TOP

Related Classes of org.jpos.iso.IFE_LLNUM

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.