use of easytests.core.models.AnswerModel in project easy-tests by malinink.
the class AnswersServiceTest method createAnswerModel.
private AnswerModelInterface createAnswerModel(Integer id, String txt, Integer questionId, Integer serialNumber, Boolean right) {
final AnswerModelInterface answerModel = new AnswerModel();
answerModel.setId(id);
answerModel.setTxt(txt);
answerModel.setSerialNumber(serialNumber);
answerModel.setRight(true);
final QuestionModelInterface questionModel = Mockito.mock(QuestionModelInterface.class);
Mockito.when(questionModel.getId()).thenReturn(questionId);
answerModel.setQuestion(questionModel);
return answerModel;
}
use of easytests.core.models.AnswerModel in project easy-tests by malinink.
the class AnswersServiceTest method createAnswerModel.
private AnswerModelInterface createAnswerModel(Integer id, String txt, QuestionModelInterface question, Integer serialNumber, boolean right) {
final AnswerModelInterface answerModel = new AnswerModel();
answerModel.setId(id);
answerModel.setTxt(txt);
answerModel.setQuestion(question);
answerModel.setSerialNumber(serialNumber);
answerModel.setRight(right);
return answerModel;
}
Aggregations