@Test public void test_to_domain() { SurrenderReason expectedDomain = surrenderReasonMapper.toDomain(contract()); assertEquals(expectedDomain.getId(), domain().getId()); assertEquals(expectedDomain.getDescription(), domain().getDescription()); assertEquals(expectedDomain.getName(), domain().getName()); assertEquals(expectedDomain.getCreatedBy().getId(), domain().getCreatedBy().getId()); assertEquals(expectedDomain.getLastModifiedBy().getId(), domain().getLastModifiedBy().getId()); assertEquals(expectedDomain.getTenantId(), domain().getTenantId()); }
public SurrenderReason toDomain(SurrenderReasonContract contract) { SurrenderReason surrenderReason = new SurrenderReason(); surrenderReason.setId(contract.getId()); surrenderReason.setName(contract.getName()); surrenderReason.setDescription(contract.getDescription()); surrenderReason.setCreatedBy(contract.getCreatedBy()); surrenderReason.setCreatedDate(contract.getCreatedDate()); surrenderReason.setLastModifiedBy(contract.getLastModifiedBy()); surrenderReason.setLastModifiedDate(contract.getLastModifiedDate()); surrenderReason.setTenantId(contract.getTenantId()); return surrenderReason; }
SurrenderReasonMapper { public SurrenderReason toDomain(SurrenderReasonContract contract) { SurrenderReason surrenderReason = new SurrenderReason(); surrenderReason.setId(contract.getId()); surrenderReason.setName(contract.getName()); surrenderReason.setDescription(contract.getDescription()); surrenderReason.setCreatedBy(contract.getCreatedBy()); surrenderReason.setCreatedDate(contract.getCreatedDate()); surrenderReason.setLastModifiedBy(contract.getLastModifiedBy()); surrenderReason.setLastModifiedDate(contract.getLastModifiedDate()); surrenderReason.setTenantId(contract.getTenantId()); return surrenderReason; } }
SurrenderReasonMapper { public SurrenderReason toDomain(SurrenderReasonContract contract) { SurrenderReason surrenderReason = new SurrenderReason(); surrenderReason.setId(contract.getId()); surrenderReason.setName(contract.getName()); surrenderReason.setDescription(contract.getDescription()); surrenderReason.setCreatedBy(contract.getCreatedBy()); surrenderReason.setCreatedDate(contract.getCreatedDate()); surrenderReason.setLastModifiedBy(contract.getLastModifiedBy()); surrenderReason.setLastModifiedDate(contract.getLastModifiedDate()); surrenderReason.setTenantId(contract.getTenantId()); return surrenderReason; }  }
SurrenderReasonMapper { public SurrenderReason toDomain(SurrenderReasonContract contract) { SurrenderReason surrenderReason = new SurrenderReason(); surrenderReason.setId(contract.getId()); surrenderReason.setName(contract.getName()); surrenderReason.setDescription(contract.getDescription()); surrenderReason.setCreatedBy(contract.getCreatedBy()); surrenderReason.setCreatedDate(contract.getCreatedDate()); surrenderReason.setLastModifiedBy(contract.getLastModifiedBy()); surrenderReason.setLastModifiedDate(contract.getLastModifiedDate()); surrenderReason.setTenantId(contract.getTenantId()); return surrenderReason; }  SurrenderReason toDomain(SurrenderReasonContract contract); SurrenderReasonContract toContract(SurrenderReason surrenderReason); SurrenderReasonSearch toSearchDomain(SurrenderReasonSearchContract contract); SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch); }
SurrenderReasonMapper { public SurrenderReason toDomain(SurrenderReasonContract contract) { SurrenderReason surrenderReason = new SurrenderReason(); surrenderReason.setId(contract.getId()); surrenderReason.setName(contract.getName()); surrenderReason.setDescription(contract.getDescription()); surrenderReason.setCreatedBy(contract.getCreatedBy()); surrenderReason.setCreatedDate(contract.getCreatedDate()); surrenderReason.setLastModifiedBy(contract.getLastModifiedBy()); surrenderReason.setLastModifiedDate(contract.getLastModifiedDate()); surrenderReason.setTenantId(contract.getTenantId()); return surrenderReason; }  SurrenderReason toDomain(SurrenderReasonContract contract); SurrenderReasonContract toContract(SurrenderReason surrenderReason); SurrenderReasonSearch toSearchDomain(SurrenderReasonSearchContract contract); SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch);  }