Search in sources :

Example 1 with AnswersOptions

use of easytests.core.options.AnswersOptions in project easy-tests by malinink.

the class AnswersController method getQuestionModel.

private QuestionModelInterface getQuestionModel(Integer id, Boolean forDelete) {
    final QuestionsOptionsInterface questionsOptions = this.questionsOptionsBuilder.forAuth().withAnswers(new AnswersOptions());
    final QuestionModelInterface questionModel = this.questionsService.find(id, questionsOptions);
    // checkModel(questionModel, topicId);
    if (forDelete) {
        return this.questionsService.find(id, this.questionsOptionsBuilder.forDelete());
    }
    return questionModel;
}
Also used : QuestionsOptionsInterface(easytests.core.options.QuestionsOptionsInterface) AnswersOptions(easytests.core.options.AnswersOptions)

Aggregations

AnswersOptions (easytests.core.options.AnswersOptions)1 QuestionsOptionsInterface (easytests.core.options.QuestionsOptionsInterface)1