Search in sources :

Example 1 with IFA_BITMAP

use of org.jpos.iso.IFA_BITMAP in project jPOS by jpos.

the class GenericPackagerTest method testGetFirstField.

@Test
public void testGetFirstField() throws Throwable {
    GenericPackager genericValidatingPackager = new GenericValidatingPackager();
    ISOFieldPackager[] fld = new ISOFieldPackager[3];
    fld[1] = new IFA_BITMAP();
    genericValidatingPackager.setFieldPackager(fld);
    int result = genericValidatingPackager.getFirstField();
    assertEquals("result", 2, result);
}
Also used : IFA_BITMAP(org.jpos.iso.IFA_BITMAP) ISOFieldPackager(org.jpos.iso.ISOFieldPackager) Test(org.junit.Test)

Aggregations

IFA_BITMAP (org.jpos.iso.IFA_BITMAP)1 ISOFieldPackager (org.jpos.iso.ISOFieldPackager)1 Test (org.junit.Test)1