public class SerializationTest extends AbstractJCRTest
SerializationTest contains the test cases for the method
Workspace.exportSysView() and Session.importSysView().
This class exports and re-imports the repository. The tests check for differences between the original and the re-imported repository.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
CONTENTHANDLER |
protected File |
file |
protected boolean |
NORECURSE |
protected boolean |
RECURSE |
protected boolean |
SAVEBINARY |
protected Session |
session |
protected boolean |
SESSION |
protected boolean |
SKIPBINARY |
protected boolean |
STREAM |
protected org.apache.jackrabbit.test.api.TreeComparator |
treeComparator |
protected Workspace |
workspace |
protected boolean |
WORKSPACE |
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, testPath, testRoot, testRootNode, vf, workspaceName| Constructor and Description |
|---|
SerializationTest() |
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureLockingSupported, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getPrefix, getProperty, getProperty, getQualifiedName, getSize, isSupported, needsMixin, runassertEquals, 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, toStringprotected Workspace workspace
protected File file
protected org.apache.jackrabbit.test.api.TreeComparator treeComparator
protected final boolean CONTENTHANDLER
protected final boolean STREAM
protected final boolean WORKSPACE
protected final boolean SESSION
protected final boolean SKIPBINARY
protected final boolean SAVEBINARY
protected final boolean NORECURSE
protected final boolean RECURSE
protected Session session
public void setUp()
throws RepositoryException,
Exception
setUp in class AbstractJCRTestRepositoryExceptionExceptionpublic void tearDown()
throws Exception
tearDown in class AbstractJCRTestExceptionprotected Node initVersioningException(boolean returnParent) throws RepositoryException, NotExecutableException, IOException
NotExecutableException if
AbstractJCRTest.testNodeType is not versionable.returnParent - Whether the method returns a checked-in parent or the
child of a checked-in parent.RepositoryExceptionNotExecutableExceptionIOExceptionpublic void doTestVersioningExceptionFileParent(boolean useWorkspace,
boolean useHandler)
throws Exception
Exceptionpublic void doTestVersioningExceptionFileChild(boolean useWorkspace,
boolean useHandler)
throws Exception
Exceptionpublic void testVersioningExceptionFileParentWorkspaceContentHandler()
throws Exception
Exceptionpublic void testVersioningExceptionFileParentSessionContentHandler()
throws Exception
Exceptionpublic void testVersioningExceptionFileParentWorkspace()
throws Exception
Exceptionpublic void testVersioningExceptionFileParentSession()
throws Exception
Exceptionpublic void testVersioningExceptionFileChildWorkspaceContentHandler()
throws Exception
Exceptionpublic void testVersioningExceptionFileChildSessionContentHandler()
throws Exception
Exceptionpublic void testVersioningExceptionFileChildWorkspace()
throws Exception
Exceptionpublic void testVersioningExceptionFileChildSession()
throws Exception
Exceptionpublic void doTestLockException(boolean useWorkspace,
boolean useHandler)
throws Exception
Exceptionpublic void testLockExceptionWorkspaceWithHandler()
throws Exception
Exceptionpublic void testLockExceptionSessionWithHandler()
throws Exception
Exceptionpublic void testLockExceptionWorkspace()
throws Exception
Exceptionpublic void testInvalidXmlThrowsSaxException()
throws IOException,
ParserConfigurationException
public void testInvalidXmlThrowsInvalidSerializedDataException()
throws RepositoryException,
IOException
RepositoryExceptionIOExceptionpublic void testWorkspaceGetImportContentHandlerExceptions()
throws RepositoryException
RepositoryExceptionpublic void testSessionGetImportContentHandlerExceptions()
throws RepositoryException
RepositoryExceptionpublic void testSessionImportXmlExceptions()
throws RepositoryException,
IOException
RepositoryExceptionIOExceptionpublic void testWorkspaceImportXmlExceptions()
throws RepositoryException,
IOException
RepositoryExceptionIOExceptionpublic void doTestOverwriteException(boolean useWorkspace,
boolean useHandler)
throws Exception
Exceptionpublic void testOverwriteExceptionWorkspaceWithHandler()
throws Exception
Exceptionpublic void testOverwriteExceptionSessionWithHandler()
throws Exception
Exceptionpublic void testOverwriteExceptionWorkspace()
throws Exception
Exceptionpublic void testOverwriteExceptionSession()
throws Exception
Exceptionpublic void doTestNodeTypeConstraintViolation(boolean useWorkspace,
boolean useHandler)
throws Exception
useWorkspace - useHandler - RepositoryExceptionFileNotFoundExceptionIOExceptionExceptionpublic void testNodeTypeConstraintViolationWorkspaceWithHandler()
throws Exception
Exceptionpublic void testNodeTypeConstraintViolationSessionWithHandler()
throws Exception
Exceptionpublic void testNodeTypeConstraintViolationWorkspace()
throws Exception
Exceptionpublic void testNodeTypeConstraintViolationSession()
throws Exception
Exceptionpublic void testSessionImportXml()
throws RepositoryException,
IOException
RepositoryExceptionIOExceptionpublic void testSessionGetContentHandler()
throws Exception
Exceptionpublic void testStreamHandling()
throws RepositoryException,
IOException
Session.importXML and Workspace.importXML
obey the stream handling contract.RepositoryExceptionIOExceptionpublic void doImport(String absPath, FileInputStream in, boolean useWorkspace, boolean useHandler) throws Exception
absPath - in - useWorkspace - useHandler - RepositoryExceptionIOExceptionExceptionpublic void doImportNoSave(String absPath, FileInputStream in, boolean useHandler) throws Exception
Exceptionpublic void testExportSysView_stream_workspace_skipBinary_noRecurse()
throws Exception
Exceptionpublic void testExportSysView_stream_workspace_skipBinary_recurse()
throws Exception
Exceptionpublic void testExportSysView_stream_workspace_saveBinary_noRecurse()
throws Exception
Exceptionpublic void testExportSysView_stream_workspace_saveBinary_recurse()
throws Exception
Exceptionpublic void testExportSysView_stream_session_skipBinary_noRecurse()
throws Exception
Exceptionpublic void testExportSysView_stream_session_skipBinary_recurse()
throws Exception
Exceptionpublic void testExportSysView_stream_session_saveBinary_noRecurse()
throws Exception
Exceptionpublic void testExportSysView_stream_session_saveBinary_recurse()
throws Exception
Exceptionpublic void testExportSysView_handler_workspace_skipBinary_noRecurse()
throws Exception
Exceptionpublic void testExportSysView_handler_workspace_skipBinary_recurse()
throws Exception
Exceptionpublic void testExportSysView_handler_workspace_saveBinary_noRecurse()
throws Exception
Exceptionpublic void testExportSysView_handler_workspace_saveBinary_recurse()
throws Exception
Exceptionpublic void testExportSysView_handler_session_skipBinary_noRecurse()
throws Exception
Exceptionpublic void testExportSysView_handler_session_skipBinary_recurse()
throws Exception
Exceptionpublic void testExportSysView_handler_session_saveBinary_noRecurse()
throws Exception
Exceptionpublic void testExportSysView_handler_session_saveBinary_recurse()
throws Exception
ExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.