Search in sources :

Example 1 with QuestionModel

use of easytests.core.models.QuestionModel in project easy-tests by malinink.

the class QuestionsService method map.

private QuestionModelInterface map(QuestionEntity questionEntity) {
    if (questionEntity == null) {
        return null;
    }
    final QuestionModelInterface questionModel = new QuestionModel();
    questionModel.map(questionEntity);
    return questionModel;
}
Also used : QuestionModelInterface(easytests.core.models.QuestionModelInterface) QuestionModel(easytests.core.models.QuestionModel)

Example 2 with QuestionModel

use of easytests.core.models.QuestionModel in project easy-tests by malinink.

the class QuestionsServiceTest method mapQuestionModel.

private QuestionModelInterface mapQuestionModel(QuestionEntity questionEntity) {
    final QuestionModelInterface questionModel = new QuestionModel();
    questionModel.map(questionEntity);
    return questionModel;
}
Also used : QuestionModelInterface(easytests.core.models.QuestionModelInterface) QuestionModel(easytests.core.models.QuestionModel)

Aggregations

QuestionModel (easytests.core.models.QuestionModel)2 QuestionModelInterface (easytests.core.models.QuestionModelInterface)2