@Test(groups = "uncompressed", dependsOnGroups = "init") public void testGetSubBook_out_of_bound() throws Exception { assertNull(book.getSubBook(3)); }
public SubBook getSubBook(final int index) { if (index < 0 || index >= _sub.length) { return null; } return _sub[index]; }
Book { public SubBook getSubBook(final int index) { if (index < 0 || index >= _sub.length) { return null; } return _sub[index]; } }
Book { public SubBook getSubBook(final int index) { if (index < 0 || index >= _sub.length) { return null; } return _sub[index]; } Book(final String bookPath);  Book(final File bookDir); @SuppressWarnings("checkstyle:avoidinlineconditionals")  Book(final String bookPath, final String appendixPath);  Book(final File bookDir, final File appendixDir); }
Book { public SubBook getSubBook(final int index) { if (index < 0 || index >= _sub.length) { return null; } return _sub[index]; } Book(final String bookPath);  Book(final File bookDir); @SuppressWarnings("checkstyle:avoidinlineconditionals")  Book(final String bookPath, final String appendixPath);  Book(final File bookDir, final File appendixDir); String getPath(); int getBookType(); int getCharCode(); void setCharCode(final int charCode); int getSubBookCount(); SubBook[] getSubBooks(); SubBook getSubBook(final int index); int getVersion(); }
Book { public SubBook getSubBook(final int index) { if (index < 0 || index >= _sub.length) { return null; } return _sub[index]; } Book(final String bookPath);  Book(final File bookDir); @SuppressWarnings("checkstyle:avoidinlineconditionals")  Book(final String bookPath, final String appendixPath);  Book(final File bookDir, final File appendixDir); String getPath(); int getBookType(); int getCharCode(); void setCharCode(final int charCode); int getSubBookCount(); SubBook[] getSubBooks(); SubBook getSubBook(final int index); int getVersion(); static final int DISC_EB; static final int DISC_EPWING; static final int CHARCODE_ISO8859_1; static final int CHARCODE_JISX0208; static final int CHARCODE_JISX0208_GB2312; }