org.alfresco.repo.node
Class PerformanceNodeServiceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.node.PerformanceNodeServiceTest
All Implemented Interfaces:
junit.framework.Test

public class PerformanceNodeServiceTest
extends junit.framework.TestCase

PerformanceNodeServiceTest


Field Summary
static org.alfresco.service.namespace.QName ASSOC_QNAME_CHILDREN
           
protected  org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
           
static java.lang.String NAMESPACE
           
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
static org.alfresco.service.namespace.QName PROP_QNAME_NAME
           
protected  org.alfresco.service.cmr.repository.NodeRef rootNodeRef
          populated during setup
static java.lang.String TEST_PREFIX
           
static org.alfresco.service.namespace.QName TYPE_QNAME_TEST
           
 
Constructor Summary
PerformanceNodeServiceTest()
           
 
Method Summary
 void buildNodeChildren(org.alfresco.service.cmr.repository.NodeRef parent, int level, int maxLevel, int childCount)
           
static org.alfresco.service.cmr.dictionary.DictionaryService loadModel(org.springframework.context.ApplicationContext applicationContext)
          Loads the test model required for building the node graphs
static void main(java.lang.String[] args)
          Runs a test with more depth
protected  void setUp()
           
protected  void tearDown()
           
 void testPerformanceNodeService()
           
 void testSetUp()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAMESPACE

public static final java.lang.String NAMESPACE
See Also:
Constant Field Values

TEST_PREFIX

public static final java.lang.String TEST_PREFIX
See Also:
Constant Field Values

TYPE_QNAME_TEST

public static final org.alfresco.service.namespace.QName TYPE_QNAME_TEST

PROP_QNAME_NAME

public static final org.alfresco.service.namespace.QName PROP_QNAME_NAME

ASSOC_QNAME_CHILDREN

public static final org.alfresco.service.namespace.QName ASSOC_QNAME_CHILDREN

dictionaryService

protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService

nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService

rootNodeRef

protected org.alfresco.service.cmr.repository.NodeRef rootNodeRef
populated during setup

Constructor Detail

PerformanceNodeServiceTest

public PerformanceNodeServiceTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

loadModel

public static org.alfresco.service.cmr.dictionary.DictionaryService loadModel(org.springframework.context.ApplicationContext applicationContext)
Loads the test model required for building the node graphs


testSetUp

public void testSetUp()
               throws java.lang.Exception
Throws:
java.lang.Exception

testPerformanceNodeService

public void testPerformanceNodeService()
                                throws java.lang.Exception
Throws:
java.lang.Exception

buildNodeChildren

public void buildNodeChildren(org.alfresco.service.cmr.repository.NodeRef parent,
                              int level,
                              int maxLevel,
                              int childCount)

main

public static void main(java.lang.String[] args)
Runs a test with more depth



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.