org.exoplatform.services.jcr.ext.replication.test
Class NtFileTestCase

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
      extended by org.exoplatform.services.jcr.ext.replication.test.NtFileTestCase

public class NtFileTestCase
extends BaseReplicationTestCase

Created by The eXo Platform SAS.

Version:
$Id: NtFileTestCase.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Alex Reshetnyak

Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
BUFFER_SIZE, DIVIDER, log, ONE_SECONDS, repository, rootNode, session
 
Constructor Summary
NtFileTestCase(RepositoryService repositoryService, java.lang.String reposytoryName, java.lang.String workspaceName, java.lang.String userName, java.lang.String password)
          NtFileTestCase constructor.
 
Method Summary
 java.lang.StringBuffer addNtFile(java.lang.String repoPath, java.lang.String fileName, java.lang.Long fileSize)
          addNtFile.
 java.lang.StringBuffer checkNtFile(java.lang.String repoPath, java.lang.String fileName, java.lang.Long fileSize)
          checkNtFile.
 
Methods inherited from class org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
addNodePath, compareStream, compareStream, getNormalizePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NtFileTestCase

public NtFileTestCase(RepositoryService repositoryService,
                      java.lang.String reposytoryName,
                      java.lang.String workspaceName,
                      java.lang.String userName,
                      java.lang.String password)
NtFileTestCase constructor.

Parameters:
repositoryService - the RepositoryService.
reposytoryName - the repository name
workspaceName - the workspace name
userName - the user name
password - the password
Method Detail

addNtFile

public java.lang.StringBuffer addNtFile(java.lang.String repoPath,
                                        java.lang.String fileName,
                                        java.lang.Long fileSize)
addNtFile.

Parameters:
repoPath - repository path
fileName - the name of nt:file node
fileSize - the file size
Returns:
StringBuffer return the responds {'ok', 'fail'}

checkNtFile

public java.lang.StringBuffer checkNtFile(java.lang.String repoPath,
                                          java.lang.String fileName,
                                          java.lang.Long fileSize)
checkNtFile.

Parameters:
repoPath - repository path
fileName - the name of nt:file node
fileSize - the file size
Returns:
StringBuffer return the responds {'ok', 'fail'}


Copyright © 2010 eXo Platform SAS. All Rights Reserved.