|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
public abstract class BaseReplicationTestCase
Created by The eXo Platform SAS.
| Field Summary | |
|---|---|
protected static int |
BUFFER_SIZE
Definition the size of buffer. |
static int |
DIVIDER
Definition the divider. |
protected static org.apache.commons.logging.Log |
log
The apache logger. |
static double |
ONE_SECONDS
Definition the constants to on seconds. |
protected javax.jcr.Repository |
repository
The JCR repository. |
protected javax.jcr.Node |
rootNode
The root node in workspace. |
protected javax.jcr.Session |
session
The JCR session. |
| Constructor Summary | |
|---|---|
BaseReplicationTestCase(RepositoryService repositoryService,
java.lang.String reposytoryName,
java.lang.String workspaceName,
java.lang.String userName,
java.lang.String password)
BaseReplicationTestCase constructor. |
|
| Method Summary | |
|---|---|
protected javax.jcr.Node |
addNodePath(java.lang.String repoPath)
addNodePath. |
protected void |
compareStream(java.io.InputStream etalon,
java.io.InputStream data)
compareStream. |
protected void |
compareStream(java.io.InputStream etalon,
java.io.InputStream data,
long etalonPos,
long dataPos,
long length)
Compare etalon stream with data stream begining from the offset in etalon and position in data. |
protected java.lang.String |
getNormalizePath(java.lang.String repoPath)
getNormalizePath. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected static final int BUFFER_SIZE
public static final int DIVIDER
public static final double ONE_SECONDS
protected javax.jcr.Session session
protected javax.jcr.Node rootNode
protected javax.jcr.Repository repository
| Constructor Detail |
|---|
public BaseReplicationTestCase(RepositoryService repositoryService,
java.lang.String reposytoryName,
java.lang.String workspaceName,
java.lang.String userName,
java.lang.String password)
repositoryService - the RepositoryService.reposytoryName - the repository nameworkspaceName - the workspace nameuserName - the user namepassword - the password| Method Detail |
|---|
protected javax.jcr.Node addNodePath(java.lang.String repoPath)
throws javax.jcr.RepositoryException
repoPath - the repository path
javax.jcr.RepositoryException - will be generated the RepositoryException.protected java.lang.String getNormalizePath(java.lang.String repoPath)
repoPath - the repository path split '::'
protected void compareStream(java.io.InputStream etalon,
java.io.InputStream data)
throws java.lang.Exception
etalon - the eatalon streamdata - the testing stream
java.lang.Exception - will be generated the Exception.
protected void compareStream(java.io.InputStream etalon,
java.io.InputStream data,
long etalonPos,
long dataPos,
long length)
throws java.lang.Exception
etalon - the etalon streamdata - testing streametalonPos - etalon positiondataPos - testing positionlength - the length
java.lang.Exception - will be generated the Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||