Book { public SubBook[] getSubBooks() { if (_sub == null) { return new SubBook[0]; } int len = _sub.length; SubBook[] list = new SubBook[len]; System.arraycopy(_sub, 0, list, 0, len); return list; } 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; }
@Test(groups = "compressed", dependsOnGroups = "init2") public void testGetSubBooks_z() throws Exception { assertEquals(book.getSubBooks().length, 2); }
@Test(groups = "uncompressed", dependsOnGroups = "init") public void testGetSubBooks() throws Exception { assertEquals(book.getSubBooks().length, 2); }