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, 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 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 AbstractJCRTest
RepositoryException
Exception
public void tearDown() throws Exception
tearDown
in class AbstractJCRTest
Exception
protected 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.RepositoryException
NotExecutableException
IOException
public void doTestVersioningExceptionFileParent(boolean useWorkspace, boolean useHandler) throws Exception
Exception
public void doTestVersioningExceptionFileChild(boolean useWorkspace, boolean useHandler) throws Exception
Exception
public void testVersioningExceptionFileParentWorkspaceContentHandler() throws Exception
Exception
public void testVersioningExceptionFileParentSessionContentHandler() throws Exception
Exception
public void testVersioningExceptionFileParentWorkspace() throws Exception
Exception
public void testVersioningExceptionFileParentSession() throws Exception
Exception
public void testVersioningExceptionFileChildWorkspaceContentHandler() throws Exception
Exception
public void testVersioningExceptionFileChildSessionContentHandler() throws Exception
Exception
public void testVersioningExceptionFileChildWorkspace() throws Exception
Exception
public void testVersioningExceptionFileChildSession() throws Exception
Exception
public void doTestLockException(boolean useWorkspace, boolean useHandler) throws Exception
Exception
public void testLockExceptionWorkspaceWithHandler() throws Exception
Exception
public void testLockExceptionSessionWithHandler() throws Exception
Exception
public void testLockExceptionWorkspace() throws Exception
Exception
public void testInvalidXmlThrowsSaxException() throws IOException, ParserConfigurationException
public void testInvalidXmlThrowsInvalidSerializedDataException() throws RepositoryException, IOException
RepositoryException
IOException
public void testWorkspaceGetImportContentHandlerExceptions() throws RepositoryException
RepositoryException
public void testSessionGetImportContentHandlerExceptions() throws RepositoryException
RepositoryException
public void testSessionImportXmlExceptions() throws RepositoryException, IOException
RepositoryException
IOException
public void testWorkspaceImportXmlExceptions() throws RepositoryException, IOException
RepositoryException
IOException
public void doTestOverwriteException(boolean useWorkspace, boolean useHandler) throws Exception
Exception
public void testOverwriteExceptionWorkspaceWithHandler() throws Exception
Exception
public void testOverwriteExceptionSessionWithHandler() throws Exception
Exception
public void testOverwriteExceptionWorkspace() throws Exception
Exception
public void testOverwriteExceptionSession() throws Exception
Exception
public void doTestNodeTypeConstraintViolation(boolean useWorkspace, boolean useHandler) throws Exception
useWorkspace
- useHandler
- RepositoryException
FileNotFoundException
IOException
Exception
public void testNodeTypeConstraintViolationWorkspaceWithHandler() throws Exception
Exception
public void testNodeTypeConstraintViolationSessionWithHandler() throws Exception
Exception
public void testNodeTypeConstraintViolationWorkspace() throws Exception
Exception
public void testNodeTypeConstraintViolationSession() throws Exception
Exception
public void testSessionImportXml() throws RepositoryException, IOException
RepositoryException
IOException
public void testSessionGetContentHandler() throws Exception
Exception
public void testStreamHandling() throws RepositoryException, IOException
Session.importXML
and Workspace.importXML
obey the stream handling contract.RepositoryException
IOException
public void doImport(String absPath, FileInputStream in, boolean useWorkspace, boolean useHandler) throws Exception
absPath
- in
- useWorkspace
- useHandler
- RepositoryException
IOException
Exception
public void doImportNoSave(String absPath, FileInputStream in, boolean useHandler) throws Exception
Exception
public void testExportSysView_stream_workspace_skipBinary_noRecurse() throws Exception
Exception
public void testExportSysView_stream_workspace_skipBinary_recurse() throws Exception
Exception
public void testExportSysView_stream_workspace_saveBinary_noRecurse() throws Exception
Exception
public void testExportSysView_stream_workspace_saveBinary_recurse() throws Exception
Exception
public void testExportSysView_stream_session_skipBinary_noRecurse() throws Exception
Exception
public void testExportSysView_stream_session_skipBinary_recurse() throws Exception
Exception
public void testExportSysView_stream_session_saveBinary_noRecurse() throws Exception
Exception
public void testExportSysView_stream_session_saveBinary_recurse() throws Exception
Exception
public void testExportSysView_handler_workspace_skipBinary_noRecurse() throws Exception
Exception
public void testExportSysView_handler_workspace_skipBinary_recurse() throws Exception
Exception
public void testExportSysView_handler_workspace_saveBinary_noRecurse() throws Exception
Exception
public void testExportSysView_handler_workspace_saveBinary_recurse() throws Exception
Exception
public void testExportSysView_handler_session_skipBinary_noRecurse() throws Exception
Exception
public void testExportSysView_handler_session_skipBinary_recurse() throws Exception
Exception
public void testExportSysView_handler_session_saveBinary_noRecurse() throws Exception
Exception
public void testExportSysView_handler_session_saveBinary_recurse() throws Exception
Exception
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.