org.alfresco.repo.node
Class ConcurrentNodeServiceTest

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

public class ConcurrentNodeServiceTest
extends junit.framework.TestCase


Field Summary
static org.alfresco.service.namespace.QName ASPECT_QNAME_TEST_TITLED
           
static int COUNT
           
static java.lang.String NAMESPACE
           
static org.alfresco.service.namespace.QName PROP_QNAME_TEST_MIMETYPE
           
static org.alfresco.service.namespace.QName PROP_QNAME_TEST_TITLE
           
static int REPEATS
           
static java.lang.String TEST_PREFIX
           
static org.alfresco.service.namespace.QName TYPE_QNAME_TEST_CONTENT
           
 
Constructor Summary
ConcurrentNodeServiceTest()
           
 
Method Summary
protected  java.util.Map buildNodeGraph()
           
protected  java.util.Map commitNodeGraph()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testConcurrent()
           
 void testMultiThreadedNodePropertiesWrites()
          Tests that when multiple threads try to edit different properties on a node, that transactions + retries always mean that every change always ends up on the node.
 void xtest1()
           
 void xtest10()
           
 void xtest2()
           
 void xtest3()
           
 void xtest4()
           
 void xtest5()
           
 void xtest6()
           
 void xtest7()
           
 void xtest8()
           
 void xtest9()
           
 
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_CONTENT

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

ASPECT_QNAME_TEST_TITLED

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

PROP_QNAME_TEST_TITLE

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

PROP_QNAME_TEST_MIMETYPE

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

COUNT

public static final int COUNT
See Also:
Constant Field Values

REPEATS

public static final int REPEATS
See Also:
Constant Field Values
Constructor Detail

ConcurrentNodeServiceTest

public ConcurrentNodeServiceTest()
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()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

buildNodeGraph

protected java.util.Map buildNodeGraph()
                                throws java.lang.Exception
Throws:
java.lang.Exception

commitNodeGraph

protected java.util.Map commitNodeGraph()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

xtest1

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

xtest2

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

xtest3

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

xtest4

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

xtest5

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

xtest6

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

xtest7

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

xtest8

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

xtest9

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

xtest10

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

testConcurrent

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

testMultiThreadedNodePropertiesWrites

public void testMultiThreadedNodePropertiesWrites()
                                           throws java.lang.Exception
Tests that when multiple threads try to edit different properties on a node, that transactions + retries always mean that every change always ends up on the node.

Throws:
java.lang.Exception
Since:
3.4


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