@Test(expected = IllegalArgumentException.class) public void testCheckValidTree() throws Exception { User testUser = getTestUser(); new SystemUserImpl(testUser.getID(), root.getTree(testUser.getPath()), (UserManagerImpl) userMgr); }
@Override void checkValidTree(@NotNull Tree tree) throws RepositoryException { super.checkValidTree(tree); if (!UserUtil.isSystemUser(tree)) { throw new IllegalArgumentException("Invalid user node: node type rep:SystemUser expected."); } }
SystemUserImpl extends UserImpl { @Override void checkValidTree(@NotNull Tree tree) throws RepositoryException { super.checkValidTree(tree); if (!UserUtil.isSystemUser(tree)) { throw new IllegalArgumentException("Invalid user node: node type rep:SystemUser expected."); } } }
SystemUserImpl extends UserImpl { @Override void checkValidTree(@NotNull Tree tree) throws RepositoryException { super.checkValidTree(tree); if (!UserUtil.isSystemUser(tree)) { throw new IllegalArgumentException("Invalid user node: node type rep:SystemUser expected."); } } SystemUserImpl(@NotNull String id, @NotNull Tree tree, @NotNull UserManagerImpl userManager); }
SystemUserImpl extends UserImpl { @Override void checkValidTree(@NotNull Tree tree) throws RepositoryException { super.checkValidTree(tree); if (!UserUtil.isSystemUser(tree)) { throw new IllegalArgumentException("Invalid user node: node type rep:SystemUser expected."); } } SystemUserImpl(@NotNull String id, @NotNull Tree tree, @NotNull UserManagerImpl userManager); @NotNull @Override Principal getPrincipal(); @Override boolean isSystemUser(); @Override void changePassword(@Nullable String password); @Override void changePassword(@Nullable String password, @NotNull String oldPassword); }
SystemUserImpl extends UserImpl { @Override void checkValidTree(@NotNull Tree tree) throws RepositoryException { super.checkValidTree(tree); if (!UserUtil.isSystemUser(tree)) { throw new IllegalArgumentException("Invalid user node: node type rep:SystemUser expected."); } } SystemUserImpl(@NotNull String id, @NotNull Tree tree, @NotNull UserManagerImpl userManager); @NotNull @Override Principal getPrincipal(); @Override boolean isSystemUser(); @Override void changePassword(@Nullable String password); @Override void changePassword(@Nullable String password, @NotNull String oldPassword);  }