use of easytests.core.entities.QuizEntity in project easy-tests by malinink.
the class QuizzesServiceTest method testFindPresentModel.
@Test
public void testFindPresentModel() throws Exception {
final Integer id = 1;
final QuizEntity quizEntity = this.createQuizEntityMock(id, "test", 1);
given(this.quizzesMapper.find(id)).willReturn(quizEntity);
final QuizModelInterface quizModel = this.quizzesService.find(id);
Assert.assertEquals(this.mapQuizModel(quizEntity), quizModel);
}
use of easytests.core.entities.QuizEntity in project easy-tests by malinink.
the class QuizzesServiceTest method getQuizzesEntities.
private List<QuizEntity> getQuizzesEntities() {
final List<QuizEntity> quizzesEntities = new ArrayList<>(2);
final QuizEntity quizEntityFirst = this.createQuizEntityMock(1, "test1", 1);
final QuizEntity quizEntitySecond = this.createQuizEntityMock(2, "test2", 2);
quizzesEntities.add(quizEntityFirst);
quizzesEntities.add(quizEntitySecond);
return quizzesEntities;
}
Aggregations