jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Pitfield (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JCR-504) TCK: DocumentViewImportTest does not call refresh after direct-to-workspace import
Date Fri, 04 Aug 2006 19:55:21 GMT
     [ http://issues.apache.org/jira/browse/JCR-504?page=all ]

David Pitfield closed JCR-504.
------------------------------


> TCK: DocumentViewImportTest does not call refresh after direct-to-workspace import
> ----------------------------------------------------------------------------------
>
>                 Key: JCR-504
>                 URL: http://issues.apache.org/jira/browse/JCR-504
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: test
>            Reporter: David Pitfield
>             Fix For: 1.1
>
>
> After performing a direct-to-workspace import, the test does not call refresh to ensure
the transient layer doesn't contain stale data.
> Proposal: call refresh(false) after performing direct-to-workspace imports.
> --- DocumentViewImportTest.java (revision 422074)
> +++ DocumentViewImportTest.java (working copy)
> @@ -106,6 +106,12 @@
>              SAXException, NotExecutableException {
>   
>          importXML(target, createSimpleDocument(), uuidBehaviour, withWorkspace);
> +
> +        if (withWorkspace)
> +        {
> +          session.refresh(false);
> +        }
> +
>          performTests();
>      }
>   
> @@ -127,6 +133,12 @@
>              SAXException, IOException, NotExecutableException {
>   
>          importWithHandler(target, createSimpleDocument(), uuidBehaviour, withWorkspace);
> +
> +        if (withWorkspace)
> +        {
> +          session.refresh(false);
> +        }
> +
>          performTests();
>      }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message