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)

Reply via email to