[ 
https://issues.apache.org/jira/browse/OAK-8453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16877835#comment-16877835
 ] 

Marcel Reutegger commented on OAK-8453:
---------------------------------------

My idea was that a unit test would then simply mock the Checkpoints with 
something like:
{noformat}
        Checkpoints checkpoints = Mockito.mock(Checkpoints.class);
        Mockito.when(checkpoints.getOldestRevisionToKeep()).thenReturn(null);
{noformat}
To mimic the behaviour when there are no checkpoints.

> Refactor VersionGarbageCollector to extract Recommendations class
> -----------------------------------------------------------------
>
>                 Key: OAK-8453
>                 URL: https://issues.apache.org/jira/browse/OAK-8453
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: documentmk
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Minor
>              Labels: candidate_oak_1_10
>             Fix For: 1.16.0
>
>         Attachments: OAK-8453.diff
>
>
> ...for easier use in unit tests.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to