@Test void isEmptyTest() { String repoFullName = "EntityRepo"; entityListenersService.register(repoFullName); assertTrue(entityListenersService.isEmpty(repoFullName)); }
boolean isEmpty(String repoFullName) { lock.readLock().lock(); try { verifyRepoRegistered(repoFullName); return entityListenersByRepo.get(repoFullName).isEmpty(); } finally { lock.readLock().unlock(); } }
EntityListenersService { boolean isEmpty(String repoFullName) { lock.readLock().lock(); try { verifyRepoRegistered(repoFullName); return entityListenersByRepo.get(repoFullName).isEmpty(); } finally { lock.readLock().unlock(); } } }
EntityListenersService { boolean isEmpty(String repoFullName) { lock.readLock().lock(); try { verifyRepoRegistered(repoFullName); return entityListenersByRepo.get(repoFullName).isEmpty(); } finally { lock.readLock().unlock(); } }  }
EntityListenersService { boolean isEmpty(String repoFullName) { lock.readLock().lock(); try { verifyRepoRegistered(repoFullName); return entityListenersByRepo.get(repoFullName).isEmpty(); } finally { lock.readLock().unlock(); } }  void addEntityListener(String repoFullName, EntityListener entityListener); boolean removeEntityListener(String repoFullName, EntityListener entityListener); }
EntityListenersService { boolean isEmpty(String repoFullName) { lock.readLock().lock(); try { verifyRepoRegistered(repoFullName); return entityListenersByRepo.get(repoFullName).isEmpty(); } finally { lock.readLock().unlock(); } }  void addEntityListener(String repoFullName, EntityListener entityListener); boolean removeEntityListener(String repoFullName, EntityListener entityListener);  }