use of easytests.core.models.QuizModel in project easy-tests by malinink.
the class QuizzesServiceTest method createQuizModel.
private QuizModelInterface createQuizModel(Integer id, String inviteCode, Integer issueId) {
final QuizModelInterface quizModel = new QuizModel();
quizModel.setId(id);
quizModel.setInviteCode(inviteCode);
final IssueModelInterface issueModel = Mockito.mock(IssueModelInterface.class);
Mockito.when(issueModel.getId()).thenReturn(issueId);
quizModel.setIssue(issueModel);
return quizModel;
}
use of easytests.core.models.QuizModel in project easy-tests by malinink.
the class QuizzesServiceTest method mapQuizModel.
private QuizModelInterface mapQuizModel(QuizEntity quizEntity) {
final QuizModelInterface quizModel = new QuizModel();
quizModel.map(quizEntity);
return quizModel;
}
use of easytests.core.models.QuizModel in project easy-tests by malinink.
the class QuizzesService method map.
private QuizModel map(QuizEntity quizEntity) {
final QuizModel quizModel = new QuizModel();
quizModel.map(quizEntity);
return quizModel;
}
Aggregations