Annotation Type Leaks


@Retention(RUNTIME) public @interface Leaks
Annotation to indicate whether test case is expected to leak classloaders or not
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Set this to true to automatically generate a heap dump of classloader could not be garbage collected.
    boolean
    Should the thread pause for a couple of seconds before throwing the test failed error? Set this to true to allow some time to aquire a heap dump to track down leaks.
    boolean
    Is this test expected to leak classloaders?
  • Element Details

    • value

      boolean value
      Is this test expected to leak classloaders?
      Default:
      true
    • haltBeforeError

      boolean haltBeforeError
      Should the thread pause for a couple of seconds before throwing the test failed error? Set this to true to allow some time to aquire a heap dump to track down leaks.
      Default:
      false
    • dumpHeapOnError

      boolean dumpHeapOnError
      Set this to true to automatically generate a heap dump of classloader could not be garbage collected. Only works on Sun/Oracle JVM.
      Default:
      false