@Test public void getAllPolicyIdsTest() { Collection<String> policyIdDetails = Lists.newArrayList(); policyIdDetails.add("PolicyID123"); policyIdDetails.add("PolicyID234"); policyIdDetails.add("PolicyID345"); when(policyService.getAllPolicyIds()).thenReturn(policyIdDetails); assertThat(policyRepository.getAllPolicyIds().size(), is(3)); }
@Override public Collection<String> getAllPolicyIds() { return policyRepository.getAllPolicyIds(); }
PolicyServiceImpl implements PolicyService, Constants { @Override public Collection<String> getAllPolicyIds() { return policyRepository.getAllPolicyIds(); } }
PolicyServiceImpl implements PolicyService, Constants { @Override public Collection<String> getAllPolicyIds() { return policyRepository.getAllPolicyIds(); }  }
PolicyServiceImpl implements PolicyService, Constants { @Override public Collection<String> getAllPolicyIds() { return policyRepository.getAllPolicyIds(); }  @Override Page<Object[]> getPolicies(final int page, final int size, final String searchTerm); @Override Collection<String> getAllPolicyIds(); @Override String updatePolicies(final UpdatePolicyDetails policyDetails); @Override String createPolicies(final CreatePolicyDetails policyDetails); @Override Policy getByPolicyId(String policyId); }
PolicyServiceImpl implements PolicyService, Constants { @Override public Collection<String> getAllPolicyIds() { return policyRepository.getAllPolicyIds(); }  @Override Page<Object[]> getPolicies(final int page, final int size, final String searchTerm); @Override Collection<String> getAllPolicyIds(); @Override String updatePolicies(final UpdatePolicyDetails policyDetails); @Override String createPolicies(final CreatePolicyDetails policyDetails); @Override Policy getByPolicyId(String policyId);  }