|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.jackrabbit.test.JUnitTest
org.apache.jackrabbit.test.AbstractJCRTest
org.apache.jackrabbit.test.api.SerializationTest
public class SerializationTest
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.
Field Summary | |
---|---|
protected boolean |
CONTENTHANDLER
|
protected java.io.File |
file
|
protected boolean |
NORECURSE
|
protected boolean |
RECURSE
|
protected boolean |
SAVEBINARY
|
protected javax.jcr.Session |
session
|
protected boolean |
SESSION
|
protected boolean |
SKIPBINARY
|
protected boolean |
STREAM
|
protected org.apache.jackrabbit.test.api.TreeComparator |
treeComparator
|
protected javax.jcr.Workspace |
workspace
|
protected boolean |
WORKSPACE
|
Fields inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
isReadOnly, jcrBaseVersion, jcrCopiedFrom, jcrCreated, jcrFrozenNode, jcrFrozenUuid, jcrIsCheckedOut, jcrlockIsDeep, jcrLockOwner, jcrMergeFailed, jcrMixinTypes, jcrPredecessors, jcrPrimaryType, jcrRootVersion, jcrSuccessors, jcrSystem, jcrUUID, jcrVersionHistory, mixLockable, mixReferenceable, mixShareable, mixSimpleVersionable, mixVersionable, nodeName1, nodeName2, nodeName3, nodeName4, NS_JCR_URI, NS_MIX_URI, NS_NT_URI, NS_SV_URI, ntBase, ntFrozenNode, ntQuery, ntUnstructured, ntVersion, ntVersionHistory, ntVersionLabels, propertyName1, propertyName2, superuser, testNodeType, testNodeTypeNoChildren, testPath, testRoot, testRootNode, vf, workspaceName |
Fields inherited from class org.apache.jackrabbit.test.JUnitTest |
---|
log |
Constructor Summary | |
---|---|
SerializationTest()
|
Methods inherited from class org.apache.jackrabbit.test.AbstractJCRTest |
---|
checkSupportedOption, cleanUp, cleanUpTestRoot, createRandomString, ensureCanSetProperty, ensureCanSetProperty, ensureCanSetProperty, ensureKnowsNodeType, ensureMixinType, ensureMultipleWorkspacesSupported, getHelper, getJcrValue, getLocalName, getNonExistingWorkspaceName, getProperty, getProperty, getSize, isSupported, needsMixin, run |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.jcr.Workspace workspace
protected java.io.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 javax.jcr.Session session
Constructor Detail |
---|
public SerializationTest()
Method Detail |
---|
public void setUp() throws javax.jcr.RepositoryException, java.lang.Exception
setUp
in class AbstractJCRTest
javax.jcr.RepositoryException
java.lang.Exception
public void tearDown() throws java.lang.Exception
tearDown
in class AbstractJCRTest
java.lang.Exception
protected javax.jcr.Node initVersioningException(boolean returnParent) throws javax.jcr.RepositoryException, NotExecutableException, java.io.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.
javax.jcr.RepositoryException
NotExecutableException
java.io.IOException
public void doTestVersioningExceptionFileParent(boolean useWorkspace, boolean useHandler) throws java.lang.Exception
java.lang.Exception
public void doTestVersioningExceptionFileChild(boolean useWorkspace, boolean useHandler) throws java.lang.Exception
java.lang.Exception
public void testVersioningExceptionFileParentWorkspaceContentHandler() throws java.lang.Exception
java.lang.Exception
public void testVersioningExceptionFileParentSessionContentHandler() throws java.lang.Exception
java.lang.Exception
public void testVersioningExceptionFileParentWorkspace() throws java.lang.Exception
java.lang.Exception
public void testVersioningExceptionFileParentSession() throws java.lang.Exception
java.lang.Exception
public void testVersioningExceptionFileChildWorkspaceContentHandler() throws java.lang.Exception
java.lang.Exception
public void testVersioningExceptionFileChildSessionContentHandler() throws java.lang.Exception
java.lang.Exception
public void testVersioningExceptionFileChildWorkspace() throws java.lang.Exception
java.lang.Exception
public void testVersioningExceptionFileChildSession() throws java.lang.Exception
java.lang.Exception
public void doTestLockException(boolean useWorkspace, boolean useHandler) throws java.lang.Exception
java.lang.Exception
public void testLockExceptionWorkspaceWithHandler() throws java.lang.Exception
java.lang.Exception
public void testLockExceptionSessionWithHandler() throws java.lang.Exception
java.lang.Exception
public void testLockExceptionWorkspace() throws java.lang.Exception
java.lang.Exception
public void testLockExceptionSession() throws java.lang.Exception
java.lang.Exception
public void testInvalidXmlThrowsSaxException() throws java.io.IOException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public void testInvalidXmlThrowsInvalidSerializedDataException() throws javax.jcr.RepositoryException, java.io.IOException
javax.jcr.RepositoryException
java.io.IOException
public void testWorkspaceGetImportContentHandlerExceptions() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void testSessionGetImportContentHandlerExceptions() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void testSessionImportXmlExceptions() throws javax.jcr.RepositoryException, java.io.IOException
javax.jcr.RepositoryException
java.io.IOException
public void testWorkspaceImportXmlExceptions() throws javax.jcr.RepositoryException, java.io.IOException
javax.jcr.RepositoryException
java.io.IOException
public void doTestOverwriteException(boolean useWorkspace, boolean useHandler) throws java.lang.Exception
java.lang.Exception
public void testOverwriteExceptionWorkspaceWithHandler() throws java.lang.Exception
java.lang.Exception
public void testOverwriteExceptionSessionWithHandler() throws java.lang.Exception
java.lang.Exception
public void testOverwriteExceptionWorkspace() throws java.lang.Exception
java.lang.Exception
public void testOverwriteExceptionSession() throws java.lang.Exception
java.lang.Exception
public void doTestNodeTypeConstraintViolation(boolean useWorkspace, boolean useHandler) throws java.lang.Exception
useWorkspace
- useHandler
-
javax.jcr.RepositoryException
java.io.FileNotFoundException
java.io.IOException
java.lang.Exception
public void testNodeTypeConstraintViolationWorkspaceWithHandler() throws java.lang.Exception
java.lang.Exception
public void testNodeTypeConstraintViolationSessionWithHandler() throws java.lang.Exception
java.lang.Exception
public void testNodeTypeConstraintViolationWorkspace() throws java.lang.Exception
java.lang.Exception
public void testNodeTypeConstraintViolationSession() throws java.lang.Exception
java.lang.Exception
public void testSessionImportXml() throws javax.jcr.RepositoryException, java.io.IOException
javax.jcr.RepositoryException
java.io.IOException
public void testSessionGetContentHandler() throws java.lang.Exception
java.lang.Exception
public void doImport(java.lang.String absPath, java.io.FileInputStream in, boolean useWorkspace, boolean useHandler) throws java.lang.Exception
absPath
- in
- useWorkspace
- useHandler
-
javax.jcr.RepositoryException
java.io.IOException
java.lang.Exception
public void doImportNoSave(java.lang.String absPath, java.io.FileInputStream in, boolean useHandler) throws java.lang.Exception
java.lang.Exception
public void testExportSysView_stream_workspace_skipBinary_noRecurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_stream_workspace_skipBinary_recurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_stream_workspace_saveBinary_noRecurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_stream_workspace_saveBinary_recurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_stream_session_skipBinary_noRecurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_stream_session_skipBinary_recurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_stream_session_saveBinary_noRecurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_stream_session_saveBinary_recurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_handler_workspace_skipBinary_noRecurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_handler_workspace_skipBinary_recurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_handler_workspace_saveBinary_noRecurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_handler_workspace_saveBinary_recurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_handler_session_skipBinary_noRecurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_handler_session_skipBinary_recurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_handler_session_saveBinary_noRecurse() throws java.lang.Exception
java.lang.Exception
public void testExportSysView_handler_session_saveBinary_recurse() throws java.lang.Exception
java.lang.Exception
public void importRepository(boolean useHandler, boolean workspace) throws java.lang.Exception
useHandler
- True = use the import handler, false = use file input
streamworkspace
- True = import into workspace, false = import into
session
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |