use of org.jpos.iso.X92_BITMAP in project jPOS by jpos.
the class X92GenericPackagerTest method testGetBitMapfieldPackager.
@Test
public void testGetBitMapfieldPackager() throws Throwable {
X92GenericPackager x92GenericPackager = new X92GenericPackager();
X92_BITMAP result = (X92_BITMAP) x92GenericPackager.getBitMapfieldPackager();
assertEquals("result.getMaxPackedLength()", 4, result.getMaxPackedLength());
}
use of org.jpos.iso.X92_BITMAP in project jPOS by jpos.
the class X92PackagerTest method testGetBitMapfieldPackager.
@Test
public void testGetBitMapfieldPackager() throws Throwable {
X92Packager x92Packager = new X92Packager();
X92_BITMAP result = (X92_BITMAP) x92Packager.getBitMapfieldPackager();
assertEquals("result.getMaxPackedLength()", 4, result.getMaxPackedLength());
}
use of org.jpos.iso.X92_BITMAP in project jPOS by jpos.
the class Base1SubFieldPackagerTest method testGetFirstField.
@Test
public void testGetFirstField() throws Throwable {
Base1SubFieldPackager base1SubFieldPackager = new Base1SubFieldPackager();
ISOFieldPackager[] fld = new ISOFieldPackager[2];
fld[0] = new X92_BITMAP(100, "testBase1SubFieldPackagerDescription");
base1SubFieldPackager.setFieldPackager(fld);
int result = base1SubFieldPackager.getFirstField();
assertEquals("result", 1, result);
}
Aggregations