@Test public void testGetBitMapfieldPackagerThrowsArrayIndexOutOfBoundsException() throws Throwable { ISOFieldPackager[] fld = new ISOFieldPackager[0]; GenericPackager genericPackager = new GenericPackager(); genericPackager.setFieldPackager(fld); try { genericPackager.getBitMapfieldPackager(); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("1", ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Index 1 out of bounds for length 0", ex.getMessage(), "ex.getMessage()"); } } }
@Override protected ISOFieldPackager getBitMapfieldPackager() { return fld[bitmapField]; }
GenericPackager extends ISOBasePackager implements Configurable { @Override protected ISOFieldPackager getBitMapfieldPackager() { return fld[bitmapField]; } }
GenericPackager extends ISOBasePackager implements Configurable { @Override protected ISOFieldPackager getBitMapfieldPackager() { return fld[bitmapField]; } GenericPackager();  GenericPackager(String filename);  GenericPackager(InputStream input); }
GenericPackager extends ISOBasePackager implements Configurable { @Override protected ISOFieldPackager getBitMapfieldPackager() { return fld[bitmapField]; } GenericPackager();  GenericPackager(String filename);  GenericPackager(InputStream input); void setConfiguration(Configuration cfg); void readFile(String filename); void readFile(InputStream input); @Override void setLogger(Logger logger, String realm); @Override String getDescription(); }
GenericPackager extends ISOBasePackager implements Configurable { @Override protected ISOFieldPackager getBitMapfieldPackager() { return fld[bitmapField]; } GenericPackager();  GenericPackager(String filename);  GenericPackager(InputStream input); void setConfiguration(Configuration cfg); void readFile(String filename); void readFile(InputStream input); @Override void setLogger(Logger logger, String realm); @Override String getDescription();  }