public class FileFolderPerformanceTester
extends junit.framework.TestCase
FileFolderService
as it provides the most convenient and most common test scenarios.
Note that this test is not designed to validate performance figures, but is rather a handy tool for doing benchmarking. It is therefore not named *Test as is the pattern for getting tests run by the continuous build.
| Modifier and Type | Field and Description |
|---|---|
protected static org.springframework.context.ApplicationContext |
ctx |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected RetryingTransactionHelper |
retryingTransactionHelper |
| Constructor and Description |
|---|
FileFolderPerformanceTester() |
| Modifier and Type | Method and Description |
|---|---|
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
protected org.alfresco.service.cmr.repository.NodeRef |
getOrCreateRootFolder() |
static void |
main(java.lang.String[] args)
Create a bunch of files and folders in a folder and then run multi-threaded directory
listings against it.
|
void |
setUp() |
void |
test_4_ordered_3_2_100() |
void |
test_4_shuffled_3_2_100() |
void |
testSetUp() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatprotected static org.springframework.context.ApplicationContext ctx
protected RetryingTransactionHelper retryingTransactionHelper
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void testSetUp()
throws java.lang.Exception
java.lang.Exceptionprotected org.alfresco.service.cmr.repository.NodeRef getOrCreateRootFolder()
public void test_4_ordered_3_2_100()
throws java.lang.Exception
java.lang.Exceptionpublic void test_4_shuffled_3_2_100()
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
args - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.