@Test public void test_to_search_domain() { final BudgetReAppropriationSearch expectedSearchDomain = budgetDetailMapper.toSearchDomain(searchContract()); assertEquals(expectedSearchDomain.getId(), searchDomain().getId()); assertEquals(expectedSearchDomain.getBudgetDetail().getId(), searchDomain().getBudgetDetail().getId()); assertEquals(expectedSearchDomain.getAdditionAmount(), searchDomain().getAdditionAmount()); assertEquals(expectedSearchDomain.getDeductionAmount(), searchDomain().getDeductionAmount()); assertEquals(expectedSearchDomain.getOriginalAdditionAmount(), searchDomain().getOriginalAdditionAmount()); assertEquals(expectedSearchDomain.getOriginalDeductionAmount(), searchDomain().getOriginalDeductionAmount()); assertEquals(expectedSearchDomain.getAnticipatoryAmount(), searchDomain().getAnticipatoryAmount()); assertEquals(expectedSearchDomain.getStatus().getId(), searchDomain().getStatus().getId()); assertEquals(expectedSearchDomain.getCreatedBy().getId(), searchDomain().getCreatedBy().getId()); assertEquals(expectedSearchDomain.getLastModifiedBy().getId(), searchDomain().getLastModifiedBy().getId()); assertEquals(expectedSearchDomain.getTenantId(), searchDomain().getTenantId()); }
public BudgetReAppropriationSearch toSearchDomain(final BudgetReAppropriationSearchContract contract) { final BudgetReAppropriationSearch budgetReAppropriationSearch = new BudgetReAppropriationSearch(); budgetReAppropriationSearch.setId(contract.getId()); budgetReAppropriationSearch.setBudgetDetail(BudgetDetail.builder() .id(contract.getBudgetDetail() != null ? contract.getBudgetDetail().getId() : null).build()); budgetReAppropriationSearch.setAdditionAmount(contract.getAdditionAmount()); budgetReAppropriationSearch.setDeductionAmount(contract.getDeductionAmount()); budgetReAppropriationSearch.setOriginalAdditionAmount(contract.getOriginalAdditionAmount()); budgetReAppropriationSearch.setOriginalDeductionAmount(contract.getOriginalDeductionAmount()); budgetReAppropriationSearch.setAnticipatoryAmount(contract.getAnticipatoryAmount()); budgetReAppropriationSearch.setStatus(FinancialStatusContract.builder() .id(contract.getStatus() != null ? contract.getStatus().getId() : null).build()); budgetReAppropriationSearch.setAsOnDate(contract.getAsOnDate()); budgetReAppropriationSearch.setCreatedBy(contract.getCreatedBy()); budgetReAppropriationSearch.setCreatedDate(contract.getCreatedDate()); budgetReAppropriationSearch.setLastModifiedBy(contract.getLastModifiedBy()); budgetReAppropriationSearch.setLastModifiedDate(contract.getLastModifiedDate()); budgetReAppropriationSearch.setTenantId(contract.getTenantId()); budgetReAppropriationSearch.setPageSize(contract.getPageSize()); budgetReAppropriationSearch.setOffset(contract.getOffset()); return budgetReAppropriationSearch; }
BudgetReAppropriationMapper { public BudgetReAppropriationSearch toSearchDomain(final BudgetReAppropriationSearchContract contract) { final BudgetReAppropriationSearch budgetReAppropriationSearch = new BudgetReAppropriationSearch(); budgetReAppropriationSearch.setId(contract.getId()); budgetReAppropriationSearch.setBudgetDetail(BudgetDetail.builder() .id(contract.getBudgetDetail() != null ? contract.getBudgetDetail().getId() : null).build()); budgetReAppropriationSearch.setAdditionAmount(contract.getAdditionAmount()); budgetReAppropriationSearch.setDeductionAmount(contract.getDeductionAmount()); budgetReAppropriationSearch.setOriginalAdditionAmount(contract.getOriginalAdditionAmount()); budgetReAppropriationSearch.setOriginalDeductionAmount(contract.getOriginalDeductionAmount()); budgetReAppropriationSearch.setAnticipatoryAmount(contract.getAnticipatoryAmount()); budgetReAppropriationSearch.setStatus(FinancialStatusContract.builder() .id(contract.getStatus() != null ? contract.getStatus().getId() : null).build()); budgetReAppropriationSearch.setAsOnDate(contract.getAsOnDate()); budgetReAppropriationSearch.setCreatedBy(contract.getCreatedBy()); budgetReAppropriationSearch.setCreatedDate(contract.getCreatedDate()); budgetReAppropriationSearch.setLastModifiedBy(contract.getLastModifiedBy()); budgetReAppropriationSearch.setLastModifiedDate(contract.getLastModifiedDate()); budgetReAppropriationSearch.setTenantId(contract.getTenantId()); budgetReAppropriationSearch.setPageSize(contract.getPageSize()); budgetReAppropriationSearch.setOffset(contract.getOffset()); return budgetReAppropriationSearch; } }
BudgetReAppropriationMapper { public BudgetReAppropriationSearch toSearchDomain(final BudgetReAppropriationSearchContract contract) { final BudgetReAppropriationSearch budgetReAppropriationSearch = new BudgetReAppropriationSearch(); budgetReAppropriationSearch.setId(contract.getId()); budgetReAppropriationSearch.setBudgetDetail(BudgetDetail.builder() .id(contract.getBudgetDetail() != null ? contract.getBudgetDetail().getId() : null).build()); budgetReAppropriationSearch.setAdditionAmount(contract.getAdditionAmount()); budgetReAppropriationSearch.setDeductionAmount(contract.getDeductionAmount()); budgetReAppropriationSearch.setOriginalAdditionAmount(contract.getOriginalAdditionAmount()); budgetReAppropriationSearch.setOriginalDeductionAmount(contract.getOriginalDeductionAmount()); budgetReAppropriationSearch.setAnticipatoryAmount(contract.getAnticipatoryAmount()); budgetReAppropriationSearch.setStatus(FinancialStatusContract.builder() .id(contract.getStatus() != null ? contract.getStatus().getId() : null).build()); budgetReAppropriationSearch.setAsOnDate(contract.getAsOnDate()); budgetReAppropriationSearch.setCreatedBy(contract.getCreatedBy()); budgetReAppropriationSearch.setCreatedDate(contract.getCreatedDate()); budgetReAppropriationSearch.setLastModifiedBy(contract.getLastModifiedBy()); budgetReAppropriationSearch.setLastModifiedDate(contract.getLastModifiedDate()); budgetReAppropriationSearch.setTenantId(contract.getTenantId()); budgetReAppropriationSearch.setPageSize(contract.getPageSize()); budgetReAppropriationSearch.setOffset(contract.getOffset()); return budgetReAppropriationSearch; }  }
BudgetReAppropriationMapper { public BudgetReAppropriationSearch toSearchDomain(final BudgetReAppropriationSearchContract contract) { final BudgetReAppropriationSearch budgetReAppropriationSearch = new BudgetReAppropriationSearch(); budgetReAppropriationSearch.setId(contract.getId()); budgetReAppropriationSearch.setBudgetDetail(BudgetDetail.builder() .id(contract.getBudgetDetail() != null ? contract.getBudgetDetail().getId() : null).build()); budgetReAppropriationSearch.setAdditionAmount(contract.getAdditionAmount()); budgetReAppropriationSearch.setDeductionAmount(contract.getDeductionAmount()); budgetReAppropriationSearch.setOriginalAdditionAmount(contract.getOriginalAdditionAmount()); budgetReAppropriationSearch.setOriginalDeductionAmount(contract.getOriginalDeductionAmount()); budgetReAppropriationSearch.setAnticipatoryAmount(contract.getAnticipatoryAmount()); budgetReAppropriationSearch.setStatus(FinancialStatusContract.builder() .id(contract.getStatus() != null ? contract.getStatus().getId() : null).build()); budgetReAppropriationSearch.setAsOnDate(contract.getAsOnDate()); budgetReAppropriationSearch.setCreatedBy(contract.getCreatedBy()); budgetReAppropriationSearch.setCreatedDate(contract.getCreatedDate()); budgetReAppropriationSearch.setLastModifiedBy(contract.getLastModifiedBy()); budgetReAppropriationSearch.setLastModifiedDate(contract.getLastModifiedDate()); budgetReAppropriationSearch.setTenantId(contract.getTenantId()); budgetReAppropriationSearch.setPageSize(contract.getPageSize()); budgetReAppropriationSearch.setOffset(contract.getOffset()); return budgetReAppropriationSearch; }  BudgetReAppropriation toDomain(final BudgetReAppropriationContract contract); BudgetReAppropriationContract toContract(final BudgetReAppropriation budgetReAppropriation); BudgetReAppropriationSearch toSearchDomain(final BudgetReAppropriationSearchContract contract); BudgetReAppropriationSearchContract toSearchContract(
            final BudgetReAppropriationSearch budgetReAppropriationSearch); }
BudgetReAppropriationMapper { public BudgetReAppropriationSearch toSearchDomain(final BudgetReAppropriationSearchContract contract) { final BudgetReAppropriationSearch budgetReAppropriationSearch = new BudgetReAppropriationSearch(); budgetReAppropriationSearch.setId(contract.getId()); budgetReAppropriationSearch.setBudgetDetail(BudgetDetail.builder() .id(contract.getBudgetDetail() != null ? contract.getBudgetDetail().getId() : null).build()); budgetReAppropriationSearch.setAdditionAmount(contract.getAdditionAmount()); budgetReAppropriationSearch.setDeductionAmount(contract.getDeductionAmount()); budgetReAppropriationSearch.setOriginalAdditionAmount(contract.getOriginalAdditionAmount()); budgetReAppropriationSearch.setOriginalDeductionAmount(contract.getOriginalDeductionAmount()); budgetReAppropriationSearch.setAnticipatoryAmount(contract.getAnticipatoryAmount()); budgetReAppropriationSearch.setStatus(FinancialStatusContract.builder() .id(contract.getStatus() != null ? contract.getStatus().getId() : null).build()); budgetReAppropriationSearch.setAsOnDate(contract.getAsOnDate()); budgetReAppropriationSearch.setCreatedBy(contract.getCreatedBy()); budgetReAppropriationSearch.setCreatedDate(contract.getCreatedDate()); budgetReAppropriationSearch.setLastModifiedBy(contract.getLastModifiedBy()); budgetReAppropriationSearch.setLastModifiedDate(contract.getLastModifiedDate()); budgetReAppropriationSearch.setTenantId(contract.getTenantId()); budgetReAppropriationSearch.setPageSize(contract.getPageSize()); budgetReAppropriationSearch.setOffset(contract.getOffset()); return budgetReAppropriationSearch; }  BudgetReAppropriation toDomain(final BudgetReAppropriationContract contract); BudgetReAppropriationContract toContract(final BudgetReAppropriation budgetReAppropriation); BudgetReAppropriationSearch toSearchDomain(final BudgetReAppropriationSearchContract contract); BudgetReAppropriationSearchContract toSearchContract(
            final BudgetReAppropriationSearch budgetReAppropriationSearch);  }