use of easytests.core.models.empty.ModelsListEmpty in project easy-tests by malinink.
the class PointsSupport method getModelMock.
private PointModelInterface getModelMock(Integer id, Integer quizId, Integer questionId) {
final PointModelInterface pointModel = Mockito.mock(PointModelInterface.class);
Mockito.when(pointModel.getId()).thenReturn(id);
Mockito.when(pointModel.getQuestion()).thenReturn(new QuestionModelEmpty(questionId));
Mockito.when(pointModel.getQuiz()).thenReturn(new QuizModelEmpty(quizId));
Mockito.when(pointModel.getSolutions()).thenReturn(new ModelsListEmpty());
return pointModel;
}
use of easytests.core.models.empty.ModelsListEmpty in project easy-tests by malinink.
the class PointsSupport method assertEquals.
public void assertEquals(PointEntity expected, PointModelInterface actual) {
assertEquals(actual, expected);
Assert.assertEquals(new QuestionModelEmpty(expected.getQuestionId()), actual.getQuestion());
Assert.assertEquals(new ModelsListEmpty(), actual.getSolutions());
Assert.assertEquals(new QuizModelEmpty(expected.getQuizId()), actual.getQuiz());
}
use of easytests.core.models.empty.ModelsListEmpty in project easy-tests by malinink.
the class QuestionsSupport method assertEquals.
public void assertEquals(QuestionEntity expected, QuestionModelInterface actual) {
assertEquals(actual, expected);
Assert.assertEquals(new ModelsListEmpty(), actual.getAnswers());
}
use of easytests.core.models.empty.ModelsListEmpty in project easy-tests by malinink.
the class SubjectsSupport method assertEquals.
public void assertEquals(SubjectEntity expected, SubjectModelInterface actual) {
assertEquals(actual, expected);
Assert.assertEquals(new UserModelEmpty(expected.getUserId()), actual.getUser());
Assert.assertEquals(new ModelsListEmpty(), actual.getTopics());
Assert.assertEquals(new IssueStandardModelEmpty(), actual.getIssueStandard());
Assert.assertEquals(new ModelsListEmpty(), actual.getIssues());
}
use of easytests.core.models.empty.ModelsListEmpty in project easy-tests by malinink.
the class TopicsSupport method assertEquals.
public void assertEquals(TopicEntity expected, TopicModelInterface actual) {
this.assertEquals(actual, expected);
Assert.assertEquals(new ModelsListEmpty(), actual.getQuestions());
}
Aggregations