Uses of Enum
com.carrotsearch.randomizedtesting.LifecycleScope
Packages that use LifecycleScope
-
Uses of LifecycleScope in com.carrotsearch.randomizedtesting
Fields in com.carrotsearch.randomizedtesting declared as LifecycleScopeFields in com.carrotsearch.randomizedtesting with type parameters of type LifecycleScopeModifier and TypeFieldDescriptionprivate EnumMap
<LifecycleScope, List<CloseableResourceInfo>> RandomizedContext.disposableResources
Disposable resources.Methods in com.carrotsearch.randomizedtesting that return LifecycleScopeModifier and TypeMethodDescriptionCloseableResourceInfo.getScope()
static LifecycleScope
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 LifecycleScopeModifier and TypeMethodDescriptionprotected void
ThreadLeakControl.checkThreadLeaks
(Set<Thread> expectedState, List<Throwable> errors, LifecycleScope scope, org.junit.runner.Description description, AnnotatedElement... annotationChain) Perform a thread leak check at the given scope.<T extends 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 ServerSocket
RandomizedTest.newServerSocket
(LifecycleScope scope) Assign a temporary server socket.static Path
RandomizedTest.newTempDir
(LifecycleScope scope) Creates a temporary directory, deleted after the given lifecycle phase.static 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 LifecycleScopeModifierConstructorDescriptionCloseableResourceInfo
(Closeable resource, LifecycleScope scope, Thread t, StackTraceElement[] allocationStack)