Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
public Object getValueAt(int rowIndex, int columnIndex) | 1 / 1 | 100 % |
|
4 / 5 | 80 % |
|
0 / 0 | --- | 0 / 0 | --- |
FrameMain.java | ||
---|---|---|
362 | public Object getValueAt(int rowIndex, int columnIndex) { | |
363 | Book book = getBookList().get(rowIndex); | |
364 | ||
365 | switch (columnIndex) { | |
366 | case 0: | |
367 | return book.getAuthor(); | |
368 | case 1: | |
369 | return book.getName(); | |
370 | case 2: | |
371 | return book.getYear(); | |
372 | case 3: | |
373 | return book.getIsbn(); | |
374 | } | |
375 | return null; | |
376 | } |