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 LifecycleScope
CloseableResourceInfo. scope
Fields 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. disposableResources
Disposable resources.Methods in com.carrotsearch.randomizedtesting that return LifecycleScope Modifier and Type Method Description LifecycleScope
CloseableResourceInfo. getScope()
static LifecycleScope
LifecycleScope. 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 void
ThreadLeakControl. 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) void
RandomizedContext. closeResources(ObjectProcedure<CloseableResourceInfo> consumer, LifecycleScope scope)
Dispose of any resources registered in the given scope.static java.net.ServerSocket
RandomizedTest. newServerSocket(LifecycleScope scope)
Assign a temporary server socket.static java.nio.file.Path
RandomizedTest. newTempDir(LifecycleScope scope)
Creates a temporary directory, deleted after the given lifecycle phase.static java.nio.file.Path
RandomizedTest. newTempFile(LifecycleScope scope)
Creates a new temporary file deleted after the given lifecycle phase completes.private static org.junit.runners.model.Statement
RandomizedRunner. 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)
-