public class ExportDocViewTest extends AbstractJCRTest
ExportDocViewTest
tests the two Session methods :
Session.exportDocumentView(String, ContentHandler, boolean, boolean)
and Session.exportDocumentView(String, java.io.OutputStream, boolean, boolean)
against the required behaviours according the document view xml mapping
defined in the JSR 170 specification in chapter 6.4.2, 6.4.3 and 6.4.4 .isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixTitle, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntActivity, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testNodeTypeTestRoot, testRoot, testRootNode, vf, workspaceName
Constructor and Description |
---|
ExportDocViewTest() |
Modifier and Type | Method and Description |
---|---|
void |
doTestExportDocView(boolean withHandler,
boolean skipBinary,
boolean noRecurse)
Tests session.exportDocView with the different argument possibilities.
|
protected void |
setUp() |
protected void |
tearDown() |
void |
testExportDocView_handler_session_saveBinary_noRecurse() |
void |
testExportDocView_handler_session_saveBinary_recurse() |
void |
testExportDocView_handler_session_skipBinary_noRecurse() |
void |
testExportDocView_handler_session_skipBinary_recurse() |
void |
testExportDocView_stream_session_saveBinary_noRecurse() |
void |
testExportDocView_stream_session_saveBinary_recurse() |
void |
testExportDocView_stream_session_skipBinary_noRecurse() |
void |
testExportDocView_stream_session_skipBinary_recurse() |
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, run
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, runTest, setName, toString
protected void setUp() throws Exception
setUp
in class AbstractJCRTest
Exception
protected void tearDown() throws Exception
tearDown
in class AbstractJCRTest
Exception
public void testExportDocView_handler_session_skipBinary_noRecurse() throws IOException, RepositoryException, SAXException, TransformerException
public void testExportDocView_handler_session_skipBinary_recurse() throws IOException, RepositoryException, SAXException, TransformerException
public void testExportDocView_handler_session_saveBinary_noRecurse() throws IOException, RepositoryException, SAXException, TransformerException
public void testExportDocView_handler_session_saveBinary_recurse() throws IOException, RepositoryException, SAXException, TransformerException
public void testExportDocView_stream_session_skipBinary_recurse() throws IOException, RepositoryException, SAXException, TransformerException
public void testExportDocView_stream_session_skipBinary_noRecurse() throws IOException, RepositoryException, SAXException, TransformerException
public void testExportDocView_stream_session_saveBinary_noRecurse() throws IOException, RepositoryException, SAXException, TransformerException
public void testExportDocView_stream_session_saveBinary_recurse() throws IOException, RepositoryException, SAXException, TransformerException
public void doTestExportDocView(boolean withHandler, boolean skipBinary, boolean noRecurse) throws RepositoryException, IOException, SAXException, TransformerException
withHandler
- boolean, decides to call method requiring a
ContentHandler as argumentskipBinary
- noRecurse
- RepositoryException
IOException
SAXException
TransformerException
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.