Search in sources :

Example 1 with ModelsListEmpty

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;
}
Also used : QuestionModelEmpty(easytests.core.models.empty.QuestionModelEmpty) ModelsListEmpty(easytests.core.models.empty.ModelsListEmpty) QuizModelEmpty(easytests.core.models.empty.QuizModelEmpty) PointModelInterface(easytests.core.models.PointModelInterface)

Example 2 with ModelsListEmpty

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());
}
Also used : QuestionModelEmpty(easytests.core.models.empty.QuestionModelEmpty) ModelsListEmpty(easytests.core.models.empty.ModelsListEmpty) QuizModelEmpty(easytests.core.models.empty.QuizModelEmpty)

Example 3 with ModelsListEmpty

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());
}
Also used : ModelsListEmpty(easytests.core.models.empty.ModelsListEmpty)

Example 4 with ModelsListEmpty

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());
}
Also used : ModelsListEmpty(easytests.core.models.empty.ModelsListEmpty) UserModelEmpty(easytests.core.models.empty.UserModelEmpty) IssueStandardModelEmpty(easytests.core.models.empty.IssueStandardModelEmpty)

Example 5 with ModelsListEmpty

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());
}
Also used : ModelsListEmpty(easytests.core.models.empty.ModelsListEmpty)

Aggregations

ModelsListEmpty (easytests.core.models.empty.ModelsListEmpty)36 Test (org.junit.Test)13 SubjectModelEmpty (easytests.core.models.empty.SubjectModelEmpty)11 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)8 IssueStandardModelEmpty (easytests.core.models.empty.IssueStandardModelEmpty)7 UserModelEmpty (easytests.core.models.empty.UserModelEmpty)7 QuestionTypeModelEmpty (easytests.core.models.empty.QuestionTypeModelEmpty)5 TopicModelEmpty (easytests.core.models.empty.TopicModelEmpty)5 IssueStandardModelInterface (easytests.core.models.IssueStandardModelInterface)4 SubjectModelInterface (easytests.core.models.SubjectModelInterface)4 IssueModelEmpty (easytests.core.models.empty.IssueModelEmpty)3 QuestionModelEmpty (easytests.core.models.empty.QuestionModelEmpty)3 QuizModelEmpty (easytests.core.models.empty.QuizModelEmpty)3 TesteeModelEmpty (easytests.core.models.empty.TesteeModelEmpty)3 IssueStandardQuestionTypeOptionModelInterface (easytests.core.models.IssueStandardQuestionTypeOptionModelInterface)2 IssueStandardTopicPriorityModelInterface (easytests.core.models.IssueStandardTopicPriorityModelInterface)2 IssueStandardQuestionTypeOptionsServiceInterface (easytests.core.services.IssueStandardQuestionTypeOptionsServiceInterface)2 IssueStandardTopicPrioritiesServiceInterface (easytests.core.services.IssueStandardTopicPrioritiesServiceInterface)2 SubjectsServiceInterface (easytests.core.services.SubjectsServiceInterface)2 ArrayList (java.util.ArrayList)2