Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
private AppFile getAppFile(String fileId) | 1 / 1 | 100 % |
|
2 / 4 | 50 % |
|
0 / 0 | --- | 0 / 2 | 0 % |
|
AppModel.java | ||
---|---|---|
272 | private AppFile getAppFile(String fileId) { | |
273 | if (fileId == null) { | |
274 | throw new NullPointerException("fileId == null"); | |
275 | } | |
276 | ||
277 | AppFile appFile = this.appFiles.get(fileId); | |
278 | ||
279 | if (appFile == null) { | |
280 | throw new IllegalArgumentException( | |
281 | "No file with the given id in the model!"); | |
282 | } | |
283 | return appFile; | |
284 | } |