On Tue, Jul 7, 2009 at 14:31, Julian Reschke<[email protected]> wrote:
> Hi,
>
> according to <https://issues.apache.org/jira/browse/JCR-1608>, Jackrabbit
> (trunk) currently only supports creating workspaces, but not deleting them.
>
> The spec allows UnsupportedOperationException on both create and delete.
>
> So what should the TCK do? Discover the repository feature, attempt
> creation, then deletion, but not report an error if the latter fails?
I think it should do the following:
- attempt to create a workspace
- if it throws a UnsupportedOperationException catch the exception
and throw a NotExecutableException
- if it succeeds
- do a login on the newly created workspace
- attempt to delete the workspace
- if it throws a UnsupportedOperationException catch the
exception and throw a NotExecutableException
- if it succeeds check if it is gone by doing a login into
the deleted workspace and expect an exception
> That
> may be tricky because it would cause an ever-growing number of workspaces
> being generated every time the TCK is run...
well, I don't think that's a big problem.
regards
marcel