@Test public void testDeleteNotFound() { Mockito.when(crnService.getCurrentAccountId()).thenReturn(ACCOUNT_ID); NotFoundException ex = Assertions.assertThrows(NotFoundException.class, () -> { underTest.delete(ENVIRONMENT_ID); }); assertEquals("KerberosConfig for environment 'environmentId' not found.", ex.getMessage()); }
public void delete(String environmentCrn) { String accountId = crnService.getCurrentAccountId(); delete(environmentCrn, accountId); }
KerberosConfigService extends AbstractArchivistService<KerberosConfig> { public void delete(String environmentCrn) { String accountId = crnService.getCurrentAccountId(); delete(environmentCrn, accountId); } }
KerberosConfigService extends AbstractArchivistService<KerberosConfig> { public void delete(String environmentCrn) { String accountId = crnService.getCurrentAccountId(); delete(environmentCrn, accountId); }  }
KerberosConfigService extends AbstractArchivistService<KerberosConfig> { public void delete(String environmentCrn) { String accountId = crnService.getCurrentAccountId(); delete(environmentCrn, accountId); }  KerberosConfig createKerberosConfig(KerberosConfig kerberosConfig); KerberosConfig createKerberosConfig(KerberosConfig kerberosConfig, String accountId); KerberosConfig get(String environmentCrn); Optional<KerberosConfig> find(String environmentCrn, String accountId, String clusterName); List<KerberosConfig> findAllInEnvironmentEvenIfArchived(String environmentCrn, String accountId); void delete(String environmentCrn); void delete(String environmentCrn, String accountId); void delete(String environmentCrn, String accountId, String clusterName); void deleteAllInEnvironment(String environmentCrn, String accountId); @Override JpaRepository repository(); }
KerberosConfigService extends AbstractArchivistService<KerberosConfig> { public void delete(String environmentCrn) { String accountId = crnService.getCurrentAccountId(); delete(environmentCrn, accountId); }  KerberosConfig createKerberosConfig(KerberosConfig kerberosConfig); KerberosConfig createKerberosConfig(KerberosConfig kerberosConfig, String accountId); KerberosConfig get(String environmentCrn); Optional<KerberosConfig> find(String environmentCrn, String accountId, String clusterName); List<KerberosConfig> findAllInEnvironmentEvenIfArchived(String environmentCrn, String accountId); void delete(String environmentCrn); void delete(String environmentCrn, String accountId); void delete(String environmentCrn, String accountId, String clusterName); void deleteAllInEnvironment(String environmentCrn, String accountId); @Override JpaRepository repository();  }