You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2018/09/27 11:40:00 UTC

[jira] [Comment Edited] (SLING-5922) allow sling mock to load content from jcrvlt's xml

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

Konrad Windszus edited comment on SLING-5922 at 9/27/18 11:39 AM:
------------------------------------------------------------------

The implementation should try to reuse the classes from Jackrabbit Filevault (namely [https://github.com/apache/jackrabbit-filevault/blob/a4fedc4f2a74cab1389807ebbbdbd7b985d7b0f0/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXImporter.java#L577]). There is also some documentation around the FileVault DocView at http://jackrabbit.apache.org/filevault/docview.html.


was (Author: kwin):
The implementation should try to reuse the classes from Jackrabbit Filevault (namely https://github.com/apache/jackrabbit-filevault/blob/a4fedc4f2a74cab1389807ebbbdbd7b985d7b0f0/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXImporter.java#L577)

> allow sling mock to load content from jcrvlt's xml
> --------------------------------------------------
>
>                 Key: SLING-5922
>                 URL: https://issues.apache.org/jira/browse/SLING-5922
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR, Testing
>    Affects Versions: JCR Content Parser 1.2.6
>            Reporter: Nicolas Peltier
>            Priority: Major
>
> loading test content from json is super simple and cool, but as soon as you have logical content in your project that is serialized in JCR-VLT format (xml), this forces you to:
> - reproduce the application xml's content in a test json file,
> - synchronize both file in later maintenance
> we should allow tester to load mock content from an arbitrary path (not necessarily resource), and accept JCR-VLT format



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