Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
private String[] getSelectedBooks() | 4 / 4 | 100 % |
|
0 / 0 | --- | 1 / 3 | 33 % |
|
1 / 1 | 100 % |
|
FrameMain.java | ||
---|---|---|
246 | private String[] getSelectedBooks() { | |
247 | List<Book> bookList = getBookList(); | |
248 | int[] indices = this.table.getSelectedRows(); | |
249 | String[] bookIds = new String[indices.length]; | |
250 | for (int i = 0; i < indices.length; i++) { | |
251 | bookIds[i] = bookList.get(indices[i]).getId(); | |
252 | } | |
253 | ||
254 | return bookIds; | |
255 | } |