public class ReflectionToStringBuilderConcurrencyTest extends Object
ReflectionToStringBuilder.
The ToStringStyle class includes a registry to avoid infinite loops for objects with circular references. We
want to make sure that we do not get concurrency exceptions accessing this registry.
The tests on the non-thread-safe collections do not pass.
| Constructor and Description |
|---|
ReflectionToStringBuilderConcurrencyTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testArrayList() |
void |
testCopyOnWriteArrayList() |
void |
testLinkedList() |
public ReflectionToStringBuilderConcurrencyTest()
public void testLinkedList() throws InterruptedException, ExecutionException
public void testArrayList() throws InterruptedException, ExecutionException
public void testCopyOnWriteArrayList() throws InterruptedException, ExecutionException
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.