Search in sources :

Example 1 with QuizModel

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;
}
Also used : QuizModelInterface(easytests.core.models.QuizModelInterface) IssueModelInterface(easytests.core.models.IssueModelInterface) QuizModel(easytests.core.models.QuizModel)

Example 2 with 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;
}
Also used : QuizModelInterface(easytests.core.models.QuizModelInterface) QuizModel(easytests.core.models.QuizModel)

Example 3 with 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;
}
Also used : QuizModel(easytests.core.models.QuizModel)

Aggregations

QuizModel (easytests.core.models.QuizModel)3 QuizModelInterface (easytests.core.models.QuizModelInterface)2 IssueModelInterface (easytests.core.models.IssueModelInterface)1