1 | package com.automationrhapsody.reststub.persistence; | |
2 | ||
3 | import com.automationrhapsody.reststub.data.Book; | |
4 | ||
5 | import java.util.ArrayList; | |
6 | import java.util.List; | |
7 | ||
8 | public class BookDB { | |
9 | private static final List<Book> BOOKS = new ArrayList<>(); | |
10 | ||
11 | static { | |
12 | BOOKS.add(new Book("1492251275", "The Purloined Letter", "Edgar Allen Poe")); | |
13 | BOOKS.add(new Book("1495375749", "The black cat", "Edgar Allen Poe")); | |
14 | BOOKS.add(new Book("1467746150", "The Raven", "Edgar Allen Poe")); | |
15 | } | |
16 | ||
17 | public static List<Book> getAll() { | |
18 |
1
1. getAll : mutated return of Object value for com/automationrhapsody/reststub/persistence/BookDB::getAll to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return BOOKS; |
19 | } | |
20 | } | |
Mutations | ||
18 |
1.1 |