Search in sources :

Example 1 with X92_BITMAP

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());
}
Also used : X92_BITMAP(org.jpos.iso.X92_BITMAP) Test(org.junit.Test)

Example 2 with X92_BITMAP

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());
}
Also used : X92_BITMAP(org.jpos.iso.X92_BITMAP) Test(org.junit.Test)

Example 3 with X92_BITMAP

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);
}
Also used : ISOFieldPackager(org.jpos.iso.ISOFieldPackager) X92_BITMAP(org.jpos.iso.X92_BITMAP) Test(org.junit.Test)

Aggregations

X92_BITMAP (org.jpos.iso.X92_BITMAP)3 Test (org.junit.Test)3 ISOFieldPackager (org.jpos.iso.ISOFieldPackager)1