@Test public void testDelete() { TestWorkspaceAwareResource r = new TestWorkspaceAwareResource(1L, workspace, "name1"); underTest.delete(r); verify(underTest).prepareDeletion(r); verify(underTest.repository()).delete(r); }
@Override public T delete(T resource) { return deleteInternal(resource); }
AbstractWorkspaceAwareResourceService implements WorkspaceAwareResourceService<T> { @Override public T delete(T resource) { return deleteInternal(resource); } }
AbstractWorkspaceAwareResourceService implements WorkspaceAwareResourceService<T> { @Override public T delete(T resource) { return deleteInternal(resource); }  }
AbstractWorkspaceAwareResourceService implements WorkspaceAwareResourceService<T> { @Override public T delete(T resource) { return deleteInternal(resource); }  @Override T createForLoggedInUser(T resource, @Nonnull Long workspaceId); @Override T create(T resource, @Nonnull Long workspaceId, User user); @Override T createWithMdcContextRestore(T resource, Workspace workspace, User user); @Override T create(T resource, Workspace workspace, User user); @Override T getByNameForWorkspace(String name, Workspace workspace); @Override Set<T> getByNamesForWorkspaceId(Set<String> names, Long workspaceId); @Override T getByNameForWorkspaceId(String name, Long workspaceId); @Override Set<T> findAllByWorkspace(Workspace workspace); @Override Set<T> findAllByWorkspaceId(Long workspaceId); @Override T deleteWithMdcContextRestore(T resource); @Override T delete(T resource); @Override Set<T> delete(Set<T> resources); @Override T deleteByNameFromWorkspace(String name, Long workspaceId); @Override Set<T> deleteMultipleByNameFromWorkspace(Set<String> names, Long workspaceId); @Override Iterable<T> findAll(); @Override T pureSave(T resource); @Override Iterable<T> pureSaveAll(Iterable<T> resources); WorkspaceService getWorkspaceService(); }
AbstractWorkspaceAwareResourceService implements WorkspaceAwareResourceService<T> { @Override public T delete(T resource) { return deleteInternal(resource); }  @Override T createForLoggedInUser(T resource, @Nonnull Long workspaceId); @Override T create(T resource, @Nonnull Long workspaceId, User user); @Override T createWithMdcContextRestore(T resource, Workspace workspace, User user); @Override T create(T resource, Workspace workspace, User user); @Override T getByNameForWorkspace(String name, Workspace workspace); @Override Set<T> getByNamesForWorkspaceId(Set<String> names, Long workspaceId); @Override T getByNameForWorkspaceId(String name, Long workspaceId); @Override Set<T> findAllByWorkspace(Workspace workspace); @Override Set<T> findAllByWorkspaceId(Long workspaceId); @Override T deleteWithMdcContextRestore(T resource); @Override T delete(T resource); @Override Set<T> delete(Set<T> resources); @Override T deleteByNameFromWorkspace(String name, Long workspaceId); @Override Set<T> deleteMultipleByNameFromWorkspace(Set<String> names, Long workspaceId); @Override Iterable<T> findAll(); @Override T pureSave(T resource); @Override Iterable<T> pureSaveAll(Iterable<T> resources); WorkspaceService getWorkspaceService();  }