|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.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 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
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public SerializationTest()
Method Detail |
---|
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 testLockExceptionSession() throws Exception
Exception
public void testInvalidXmlThrowsSaxException() throws IOException, ParserConfigurationException
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 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
public void importRepository(boolean useHandler, boolean workspace) throws Exception
useHandler
- True = use the import handler, false = use file input
streamworkspace
- True = import into workspace, false = import into
session
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |