| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package easytests.core.models; |
||
| 12 | @Data |
||
| 13 | public class TopicModel implements TopicModelInterface { |
||
| 14 | private Integer id; |
||
| 15 | |||
| 16 | private String name; |
||
| 17 | |||
| 18 | private SubjectModelInterface subject; |
||
| 19 | |||
| 20 | private List<QuestionModelInterface> questions; |
||
| 21 | |||
| 22 | public void map(TopicEntity topicEntity) { |
||
| 23 | this.setId(topicEntity.getId()); |
||
| 24 | this.setName(topicEntity.getName()); |
||
| 25 | this.setSubject(new SubjectModelEmpty(topicEntity.getSubjectId())); |
||
| 26 | this.setQuestions(new ModelsListEmpty()); |
||
| 27 | } |
||
| 29 |