@Test public void orphansExistIfCsr() { assertTrue(orphanRemovalService.orphansExist(DELETED_CLIENT_ID_WITH_ORPHAN_CSR_O5)); }
public boolean orphansExist(ClientId clientId) { if (isAlive(clientId) || hasAliveSiblings(clientId)) { return false; } Orphans orphans = findOrphans(clientId); return !orphans.isEmpty(); }
OrphanRemovalService { public boolean orphansExist(ClientId clientId) { if (isAlive(clientId) || hasAliveSiblings(clientId)) { return false; } Orphans orphans = findOrphans(clientId); return !orphans.isEmpty(); } }
OrphanRemovalService { public boolean orphansExist(ClientId clientId) { if (isAlive(clientId) || hasAliveSiblings(clientId)) { return false; } Orphans orphans = findOrphans(clientId); return !orphans.isEmpty(); } @Autowired  OrphanRemovalService(TokenService tokenService,
            TokenCertificateService tokenCertificateService,
            ClientService clientService,
            KeyService keyService,
            AuditDataHelper auditDataHelper); }
OrphanRemovalService { public boolean orphansExist(ClientId clientId) { if (isAlive(clientId) || hasAliveSiblings(clientId)) { return false; } Orphans orphans = findOrphans(clientId); return !orphans.isEmpty(); } @Autowired  OrphanRemovalService(TokenService tokenService,
            TokenCertificateService tokenCertificateService,
            ClientService clientService,
            KeyService keyService,
            AuditDataHelper auditDataHelper); boolean orphansExist(ClientId clientId); void deleteOrphans(ClientId clientId); }
OrphanRemovalService { public boolean orphansExist(ClientId clientId) { if (isAlive(clientId) || hasAliveSiblings(clientId)) { return false; } Orphans orphans = findOrphans(clientId); return !orphans.isEmpty(); } @Autowired  OrphanRemovalService(TokenService tokenService,
            TokenCertificateService tokenCertificateService,
            ClientService clientService,
            KeyService keyService,
            AuditDataHelper auditDataHelper); boolean orphansExist(ClientId clientId); void deleteOrphans(ClientId clientId);  }