Lines Matching refs:TestUtil
32 booksDao.addAuthors(TestUtil.AUTHOR_1)
33 booksDao.addPublishers(TestUtil.PUBLISHER)
34 booksDao.addBooks(TestUtil.BOOK_1)
36 val book = LiveDataTestUtil.getValue(booksDao.getBookLiveData(TestUtil.BOOK_1.bookId))
38 assertThat(book, `is`<Book>(TestUtil.BOOK_1))
43 booksDao.addAuthors(TestUtil.AUTHOR_1)
44 booksDao.addPublishers(TestUtil.PUBLISHER)
45 booksDao.addBooks(TestUtil.BOOK_1)
47 var expected = BookWithPublisher(TestUtil.BOOK_1.bookId, TestUtil.BOOK_1.title,
48 TestUtil.PUBLISHER)
58 booksDao.addAuthors(TestUtil.AUTHOR_1)
59 booksDao.addPublishers(TestUtil.PUBLISHER)
60 booksDao.addBooks(TestUtil.BOOK_1, TestUtil.BOOK_2)
63 booksDao.getPublisherWithBooksLiveData(TestUtil.PUBLISHER.publisherId))
65 assertThat(actualPublisherWithBooks.publisher, `is`<Publisher>(TestUtil.PUBLISHER))
67 assertThat(actualPublisherWithBooks.books?.get(0), `is`<Book>(TestUtil.BOOK_1))
68 assertThat(actualPublisherWithBooks.books?.get(1), `is`<Book>(TestUtil.BOOK_2))