Uses of Class
com.carrotsearch.randomizedtesting.LifecycleScope
-
Packages that use LifecycleScope Package Description com.carrotsearch.randomizedtesting -
-
Uses of LifecycleScope in com.carrotsearch.randomizedtesting
Fields in com.carrotsearch.randomizedtesting declared as LifecycleScope Modifier and Type Field Description private LifecycleScopeCloseableResourceInfo. scopeFields in com.carrotsearch.randomizedtesting with type parameters of type LifecycleScope Modifier and Type Field Description private java.util.EnumMap<LifecycleScope,java.util.List<CloseableResourceInfo>>RandomizedContext. disposableResourcesDisposable resources.Methods in com.carrotsearch.randomizedtesting that return LifecycleScope Modifier and Type Method Description LifecycleScopeCloseableResourceInfo. getScope()static LifecycleScopeLifecycleScope. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LifecycleScope[]LifecycleScope. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.carrotsearch.randomizedtesting with parameters of type LifecycleScope Modifier and Type Method Description protected voidThreadLeakControl. checkThreadLeaks(java.util.Set<java.lang.Thread> expectedState, java.util.List<java.lang.Throwable> errors, LifecycleScope scope, org.junit.runner.Description description, java.lang.reflect.AnnotatedElement... annotationChain)Perform a thread leak check at the given scope.<T extends java.io.Closeable>
TRandomizedContext. closeAtEnd(T resource, LifecycleScope scope)Dispose the given resource at the end of a given lifecycle scope.(package private) voidRandomizedContext. closeResources(ObjectProcedure<CloseableResourceInfo> consumer, LifecycleScope scope)Dispose of any resources registered in the given scope.static java.net.ServerSocketRandomizedTest. newServerSocket(LifecycleScope scope)Assign a temporary server socket.static java.nio.file.PathRandomizedTest. newTempDir(LifecycleScope scope)Creates a temporary directory, deleted after the given lifecycle phase.static java.nio.file.PathRandomizedTest. newTempFile(LifecycleScope scope)Creates a new temporary file deleted after the given lifecycle phase completes.private static org.junit.runners.model.StatementRandomizedRunner. withCloseContextResources(org.junit.runners.model.Statement s, LifecycleScope scope)Wrap with a rule to close context resources.Constructors in com.carrotsearch.randomizedtesting with parameters of type LifecycleScope Constructor Description CloseableResourceInfo(java.io.Closeable resource, LifecycleScope scope, java.lang.Thread t, java.lang.StackTraceElement[] allocationStack)
-