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:
Mark Rogers
2011-10-28 10:26:25 +00:00
parent 3685fb9395
commit b503a3c08c
4 changed files with 66 additions and 13 deletions

View File

@@ -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