You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2017/04/03 08:22:41 UTC

[jira] [Created] (OAK-6017) Reset timestamps on Revision.setClock()

Marcel Reutegger created OAK-6017:
-------------------------------------

             Summary: Reset timestamps on Revision.setClock()
                 Key: OAK-6017
                 URL: https://issues.apache.org/jira/browse/OAK-6017
             Project: Jackrabbit Oak
          Issue Type: Test
          Components: documentmk
            Reporter: Marcel Reutegger
            Assignee: Marcel Reutegger
            Priority: Minor
             Fix For: 1.8


Revision.setClock() is used for tests only. E.g. when a virtual clock should be used in a test. Revision.setClock() only resets the timestamps ({{lastTimestamp}} and {{lastRevisionTimestamp}}) only when the clock is reset to the default. The method should also reset the timestamps when any other clock is set for a test. Otherwise the timestamps may be newer than the current time of the clock in use.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)