@Test public void test_should_find_status_by_name() { when(complaintStatusJpaRepository.findByName("REJECTED")) .thenReturn(new ComplaintStatus(1L, "REJECTED","default","0001")); org.egov.workflow.domain.model.ComplaintStatus result = complaintStatusRepository.findByName("REJECTED"); assertThat(result.getId()).isEqualTo(1L); assertThat(result.getName()).isEqualTo("REJECTED"); }
public org.egov.workflow.domain.model.ComplaintStatus findByName(String name) { return complaintStatusJpaRepository.findByName(name).toDomain(); }
ComplaintStatusRepository { public org.egov.workflow.domain.model.ComplaintStatus findByName(String name) { return complaintStatusJpaRepository.findByName(name).toDomain(); } }
ComplaintStatusRepository { public org.egov.workflow.domain.model.ComplaintStatus findByName(String name) { return complaintStatusJpaRepository.findByName(name).toDomain(); } ComplaintStatusRepository(ComplaintStatusJpaRepository complaintStatusJpaRepository); }
ComplaintStatusRepository { public org.egov.workflow.domain.model.ComplaintStatus findByName(String name) { return complaintStatusJpaRepository.findByName(name).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 findByName(String name) { return complaintStatusJpaRepository.findByName(name).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);  }