mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Point checkin that suppresses spurious Cycle exception.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3530 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
|
||||
package org.alfresco.repo.avm;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.context.support.FileSystemXmlApplicationContext;
|
||||
@@ -104,6 +103,34 @@ public class AVMTestRemote extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Another test of reading.
|
||||
*/
|
||||
public void testRead()
|
||||
{
|
||||
try
|
||||
{
|
||||
// Create a file.
|
||||
byte [] buff = new byte[64];
|
||||
for (int i = 0; i < 64; i++)
|
||||
{
|
||||
buff[i] = (byte)i;
|
||||
}
|
||||
String outHandle = fAVMRemote.createFile("main:/", "foo.dat");
|
||||
fAVMRemote.writeOutput(outHandle, buff, 64);
|
||||
fAVMRemote.closeOutputHandle(outHandle);
|
||||
// Read it back in.
|
||||
String inHandle = fAVMRemote.getInputHandle(-1, "main:/foo.dat");
|
||||
buff = fAVMRemote.readInput(inHandle, 64);
|
||||
fAVMRemote.closeInputHandle(inHandle);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace(System.err);
|
||||
fail();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test a call that should throw an exception.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user