@Test public void testNoQuiz(){ assertEquals(0, quizService.getQuizzes().size()); }
public List<Quiz> getQuizzes(){ TypedQuery<Quiz> query = em.createQuery("select q from Quiz q", Quiz.class); return query.getResultList(); }
QuizService { public List<Quiz> getQuizzes(){ TypedQuery<Quiz> query = em.createQuery("select q from Quiz q", Quiz.class); return query.getResultList(); } }
QuizService { public List<Quiz> getQuizzes(){ TypedQuery<Quiz> query = em.createQuery("select q from Quiz q", Quiz.class); return query.getResultList(); }  }
QuizService { public List<Quiz> getQuizzes(){ TypedQuery<Quiz> query = em.createQuery("select q from Quiz q", Quiz.class); return query.getResultList(); }  List<Quiz> getRandomQuizzes(int n, long categoryId); long createQuiz(
            long subCategoryId,
            String question,
            String firstAnswer,
            String secondAnswer,
            String thirdAnswer,
            String fourthAnswer,
            int indexOfCorrectAnswer
    ); List<Quiz> getQuizzes(); Quiz getQuiz(long id); }
QuizService { public List<Quiz> getQuizzes(){ TypedQuery<Quiz> query = em.createQuery("select q from Quiz q", Quiz.class); return query.getResultList(); }  List<Quiz> getRandomQuizzes(int n, long categoryId); long createQuiz(
            long subCategoryId,
            String question,
            String firstAnswer,
            String secondAnswer,
            String thirdAnswer,
            String fourthAnswer,
            int indexOfCorrectAnswer
    ); List<Quiz> getQuizzes(); Quiz getQuiz(long id);  }