use of easytests.core.models.IssueModel in project easy-tests by malinink.
the class IssuesServiceTest method mapIssueModel.
private IssueModelInterface mapIssueModel(IssueEntity issueEntity) {
final IssueModelInterface issueModel = new IssueModel();
issueModel.map(issueEntity);
return issueModel;
}
use of easytests.core.models.IssueModel in project easy-tests by malinink.
the class IssuesService method map.
private IssueModelInterface map(IssueEntity issueEntity) {
if (issueEntity == null) {
return null;
}
final IssueModelInterface issueModel = new IssueModel();
issueModel.map(issueEntity);
return issueModel;
}
use of easytests.core.models.IssueModel in project easy-tests by malinink.
the class IssuesServiceTest method testSaveModel.
@Test
public void testSaveModel() throws Exception {
final IssueModelInterface issueModel = new IssueModel();
issueModel.setName("test111");
issueModel.setQuizzes(new ModelsListEmpty());
issueModel.setSubject(new SubjectModelEmpty(1));
this.issuesService.save(issueModel);
final IssueModelInterface foundIssueModel = this.issuesService.find(issueModel.getId());
Assert.assertEquals(issueModel, foundIssueModel);
}
Aggregations