@Test public void questionDetail() { Question question = dao.getByIndex(0); assertEquals("first test question", question.getDescription()); assertEquals(4, question.getVariants().length); assertEquals(1, question.getRightVariantNumber()); }
@Override public Question getByIndex(int index) { return questions.get(index); }
YamlQuestionDaoImpl implements QuestionDao { @Override public Question getByIndex(int index) { return questions.get(index); } }
YamlQuestionDaoImpl implements QuestionDao { @Override public Question getByIndex(int index) { return questions.get(index); } @SuppressWarnings("unchecked")  YamlQuestionDaoImpl(ResourceSupplier resourceSupplier); }
YamlQuestionDaoImpl implements QuestionDao { @Override public Question getByIndex(int index) { return questions.get(index); } @SuppressWarnings("unchecked")  YamlQuestionDaoImpl(ResourceSupplier resourceSupplier); @Override Question getByIndex(int index); @Override int size(); }
YamlQuestionDaoImpl implements QuestionDao { @Override public Question getByIndex(int index) { return questions.get(index); } @SuppressWarnings("unchecked")  YamlQuestionDaoImpl(ResourceSupplier resourceSupplier); @Override Question getByIndex(int index); @Override int size();  }