Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
public void addBookToFile(String fileId, Book book) | 2 / 2 | 100 % |
|
1 / 2 | 50 % |
|
0 / 0 | --- | 0 / 1 | 0 % |
|
AppModel.java | ||
---|---|---|
168 | public void addBookToFile(String fileId, Book book) { | |
169 | if (book == null) { | |
170 | throw new NullPointerException("book == null"); | |
171 | } | |
172 | ||
173 | AppFile appFile = getAppFile(fileId); | |
174 | ||
175 | appFile.addBook(book); | |
176 | } |