Uses of Enum
com.carrotsearch.randomizedtesting.LifecycleScope
Packages that use LifecycleScope
-
Uses of LifecycleScope in com.carrotsearch.randomizedtesting
Subclasses with type arguments of type LifecycleScope in com.carrotsearch.randomizedtestingFields in com.carrotsearch.randomizedtesting declared as LifecycleScopeFields in com.carrotsearch.randomizedtesting with type parameters of type LifecycleScopeModifier and TypeFieldDescriptionprivate EnumMap<LifecycleScope, List<CloseableResourceInfo>> RandomizedContext.disposableResourcesDisposable resources.Methods in com.carrotsearch.randomizedtesting that return LifecycleScopeModifier and TypeMethodDescriptionCloseableResourceInfo.getScope()static LifecycleScopeReturns 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 voidThreadLeakControl.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) voidRandomizedContext.closeResources(ObjectProcedure<CloseableResourceInfo> consumer, LifecycleScope scope) Dispose of any resources registered in the given scope.static ServerSocketRandomizedTest.newServerSocket(LifecycleScope scope) Assign a temporary server socket.static PathRandomizedTest.newTempDir(LifecycleScope scope) Creates a temporary directory, deleted after the given lifecycle phase.static 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 LifecycleScopeModifierConstructorDescriptionCloseableResourceInfo(Closeable resource, LifecycleScope scope, Thread t, StackTraceElement[] allocationStack)