Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
public void removeBookFromFile(String fileId, String bookId) | 2 / 2 | 100 % |
|
1 / 2 | 50 % |
|
0 / 0 | --- | 0 / 1 | 0 % |
|
AppModel.java | ||
---|---|---|
187 | public void removeBookFromFile(String fileId, String bookId) { | |
188 | if (bookId == null) { | |
189 | throw new NullPointerException("bookId == null"); | |
190 | } | |
191 | ||
192 | AppFile appFile = getAppFile(fileId); | |
193 | ||
194 | appFile.removeBook(bookId); | |
195 | } |