org.springframework.osgi
Class GCTests
java.lang.Object
org.springframework.osgi.GCTests
public abstract class GCTests
- extends Object
Utility class providing methods related to 'Garbage Collector' and
WeakReferences.
Normally used inside JUnit test cases.
- Author:
- Costin Leau
Field Summary |
static int |
GC_ITERATIONS
Number of iterators while calling the GC. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GC_ITERATIONS
public static int GC_ITERATIONS
- Number of iterators while calling the GC.
GCTests
public GCTests()
assertGCed
public static void assertGCed(Reference reference)
assertGCed
public static void assertGCed(String message,
Reference reference)
- Assert that the given object reference has been reclaimed. This assertion
is useful for determing if there are hard references to the given object.
- Parameters:
message
- reference
-
Copyright © 2006-2011 Spring Framework. All Rights Reserved.