@Test public void test_should_status_by_code_and_tenantId(){ when(complaintStatusJpaRepository.findByCodeAndTenantId("REGISTERED","default")) .thenReturn(new ComplaintStatus(1L, "REGISTERED","default","0001")); org.egov.workflow.domain.model.ComplaintStatus status = complaintStatusRepository.findByCodeAndTenantId("REGISTERED","default"); assertThat(status.getId()).isEqualTo(1L); assertThat(status.getName()).isEqualTo("REGISTERED"); }
public org.egov.workflow.domain.model.ComplaintStatus findByCodeAndTenantId(String code, String tenantId){ return complaintStatusJpaRepository.findByCodeAndTenantId(code,tenantId).toDomain(); }
ComplaintStatusRepository { public org.egov.workflow.domain.model.ComplaintStatus findByCodeAndTenantId(String code, String tenantId){ return complaintStatusJpaRepository.findByCodeAndTenantId(code,tenantId).toDomain(); } }
ComplaintStatusRepository { public org.egov.workflow.domain.model.ComplaintStatus findByCodeAndTenantId(String code, String tenantId){ return complaintStatusJpaRepository.findByCodeAndTenantId(code,tenantId).toDomain(); } ComplaintStatusRepository(ComplaintStatusJpaRepository complaintStatusJpaRepository); }
ComplaintStatusRepository { public org.egov.workflow.domain.model.ComplaintStatus findByCodeAndTenantId(String code, String tenantId){ return complaintStatusJpaRepository.findByCodeAndTenantId(code,tenantId).toDomain(); } ComplaintStatusRepository(ComplaintStatusJpaRepository complaintStatusJpaRepository); List<org.egov.workflow.domain.model.ComplaintStatus> findAll(); org.egov.workflow.domain.model.ComplaintStatus findByName(String name); org.egov.workflow.domain.model.ComplaintStatus findByCodeAndTenantId(String code, String tenantId); }
ComplaintStatusRepository { public org.egov.workflow.domain.model.ComplaintStatus findByCodeAndTenantId(String code, String tenantId){ return complaintStatusJpaRepository.findByCodeAndTenantId(code,tenantId).toDomain(); } ComplaintStatusRepository(ComplaintStatusJpaRepository complaintStatusJpaRepository); List<org.egov.workflow.domain.model.ComplaintStatus> findAll(); org.egov.workflow.domain.model.ComplaintStatus findByName(String name); org.egov.workflow.domain.model.ComplaintStatus findByCodeAndTenantId(String code, String tenantId);  }