use of easytests.core.models.SolutionModel in project easy-tests by malinink.
the class SolutionsServiceTest method createSolutionModel.
private SolutionModelInterface createSolutionModel(Integer id, Integer answerId, Integer pointId) {
final SolutionModelInterface solutionModel = new SolutionModel();
final AnswerModelInterface answerModel = mock(AnswerModelInterface.class);
when(answerModel.getId()).thenReturn(answerId);
final PointModelInterface pointModel = mock(PointModelInterface.class);
when(pointModel.getId()).thenReturn(pointId);
solutionModel.setId(id);
solutionModel.setAnswer(answerModel);
solutionModel.setPoint(pointModel);
return solutionModel;
}
use of easytests.core.models.SolutionModel in project easy-tests by malinink.
the class SolutionsService method map.
private SolutionModelInterface map(SolutionEntity solutionEntity) {
final SolutionModelInterface solutionModel = new SolutionModel();
solutionModel.map(solutionEntity);
return solutionModel;
}
use of easytests.core.models.SolutionModel in project easy-tests by malinink.
the class SolutionsServiceTest method mapSolutionModel.
private SolutionModelInterface mapSolutionModel(SolutionEntity solutionEntity) {
final SolutionModelInterface solutionModel = new SolutionModel();
solutionModel.map(solutionEntity);
return solutionModel;
}
Aggregations