Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
@Override public void setValueAt(Object value, int rowIndex, int columnIndex) | 9 / 9 | 100 % |
|
4 / 5 | 80 % |
|
0 / 0 | --- | 0 / 0 | --- |
FrameMain.java | ||
---|---|---|
394 | @Override | |
395 | public void setValueAt(Object value, int rowIndex, int columnIndex) { | |
396 | Book book = getBookList().get(rowIndex); | |
397 | ||
398 | switch (columnIndex) { | |
399 | case 0: | |
400 | book.setAuthor((String) value); | |
401 | break; | |
402 | case 1: | |
403 | book.setName((String) value); | |
404 | break; | |
405 | case 2: | |
406 | book.setYear(((Integer) value).intValue()); | |
407 | break; | |
408 | case 3: | |
409 | book.setIsbn((String) value); | |
410 | break; | |
411 | } | |
412 | } |