mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
CIFS - the root node should not have a name.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31537 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -209,6 +209,36 @@ public class ContentDiskDriverTest extends TestCase
|
||||
DiskSharedDevice share = new DiskSharedDevice("test", driver, ctx);
|
||||
return share;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test Get File Information
|
||||
*/
|
||||
public void testGetFileInformation() throws Exception
|
||||
{
|
||||
logger.debug("testGetFileInformation");
|
||||
ServerConfiguration scfg = new ServerConfiguration("testServer");
|
||||
TestServer testServer = new TestServer("testServer", scfg);
|
||||
final SrvSession testSession = new TestSrvSession(666, testServer, "test", "remoteName");
|
||||
DiskSharedDevice share = getDiskSharedDevice();
|
||||
|
||||
final TreeConnection testConnection = testServer.getTreeConnection(share);
|
||||
final RetryingTransactionHelper tran = transactionService.getRetryingTransactionHelper();
|
||||
|
||||
class TestContext
|
||||
{
|
||||
NodeRef testNodeRef;
|
||||
};
|
||||
|
||||
final TestContext testContext = new TestContext();
|
||||
|
||||
/**
|
||||
* Test 1 : Get the root info
|
||||
*/
|
||||
FileInfo finfo = driver.getFileInformation(testSession, testConnection, "");
|
||||
assertNotNull("root info is null", finfo);
|
||||
assertEquals("root has a unexpected file name", "", finfo.getFileName());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test Create File
|
||||
|
Reference in New Issue
Block a user