public class TestExecutorResource<T extends ExecutorService>
extends org.junit.rules.ExternalResource
ExecutorService
for testing purposes.Constructor and Description |
---|
TestExecutorResource(java.util.function.Supplier<T> serviceFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
after() |
protected void |
before() |
T |
getExecutor() |
public TestExecutorResource(java.util.function.Supplier<T> serviceFactory)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.