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 "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/04/03 16:13:15 UTC

[jira] [Commented] (OAK-742) Oak#createContentSession() should be moved to some Test class

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

Jukka Zitting commented on OAK-742:
-----------------------------------

> to avoid any misusage

What kind of misuse were you thinking about? Anyone who instantiates the Oak class in any case has full control over the repository, so it's their problem if they want to misuse it.
                
> Oak#createContentSession() should be moved to some Test class
> -------------------------------------------------------------
>
>                 Key: OAK-742
>                 URL: https://issues.apache.org/jira/browse/OAK-742
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: Antonio Sanso
>            Priority: Minor
>
> The Oak#createContentSession() is a convenience for one-off tests (as also described in the API description).
> IMHO should be moved from the Oak class to some utility class in order to avoid any misusage

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira