@Test(expected = ListenerReadOnlyException.class) public void testROAddHold() throws Exception { RetentionManagerFacade facade = getFacade(mock(RetentionManager.class)); facade.addHold("", "", true); }
@Override public Hold addHold(String absPath, String name, boolean isDeep) throws RepositoryException { throw new ListenerReadOnlyException(); }
RetentionManagerFacade implements RetentionManager { @Override public Hold addHold(String absPath, String name, boolean isDeep) throws RepositoryException { throw new ListenerReadOnlyException(); } }
RetentionManagerFacade implements RetentionManager { @Override public Hold addHold(String absPath, String name, boolean isDeep) throws RepositoryException { throw new ListenerReadOnlyException(); } RetentionManagerFacade(final @NotNull RetentionManager delegate); }
RetentionManagerFacade implements RetentionManager { @Override public Hold addHold(String absPath, String name, boolean isDeep) throws RepositoryException { throw new ListenerReadOnlyException(); } RetentionManagerFacade(final @NotNull RetentionManager delegate); @Override Hold[] getHolds(String absPath); @Override RetentionPolicy getRetentionPolicy(String absPath); @Override Hold addHold(String absPath, String name, boolean isDeep); @Override void removeHold(String absPath, Hold hold); @Override void setRetentionPolicy(String absPath, RetentionPolicy retentionPolicy); @Override void removeRetentionPolicy(String absPath); }
RetentionManagerFacade implements RetentionManager { @Override public Hold addHold(String absPath, String name, boolean isDeep) throws RepositoryException { throw new ListenerReadOnlyException(); } RetentionManagerFacade(final @NotNull RetentionManager delegate); @Override Hold[] getHolds(String absPath); @Override RetentionPolicy getRetentionPolicy(String absPath); @Override Hold addHold(String absPath, String name, boolean isDeep); @Override void removeHold(String absPath, Hold hold); @Override void setRetentionPolicy(String absPath, RetentionPolicy retentionPolicy); @Override void removeRetentionPolicy(String absPath);  }