Package org.apache.pekko.testkit
Interface WatchedByCoroner
- All Known Implementing Classes:
ClientCancellationSpec
,ClientConnectionSettingsSpec
,ClientServerHttp2EnabledSpec
,ClientServerSpec
,ClientServerSpecBase
,ClientTransportWithCustomResolverSpec
,ConfigSpec
,ConnectionPoolSettingsSpec
,EntityDiscardingSpec
,FramingSpec
,GracefulTerminationSpec
,HighLevelOutgoingConnectionSpec
,HostConnectionPoolSpec
,Http2CommonSettingsSpec
,HttpConfigurationSpec
,HttpEntitySpec
,HttpExtensionApiSpec
,HttpHeaderParserCRLFSpec
,HttpHeaderParserLFSpec
,HttpHeaderParserSpec
,HttpServerBug21008Spec
,HttpServerSpec
,HttpServerWithExplicitSchedulerSpec
,HttpsProxyGraphStageSpec
,LowLevelOutgoingConnectionSpec
,MessageSpec
,MultipartSpec
,NewConnectionPoolSpec
,One2OneBidiFlowSpec
,PekkoBaseSpec
,PekkoFreeSpec
,PekkoSpec
,PekkoSpecWithMaterializer
,PrepareRequestsSpec
,PrepareResponseSpec
,PreviewServerSettingsSpec
,RenderingSpec
,ResponseParserCRLFSpec
,ResponseParserLFSpec
,ResponseParserSpec
,ResponseParsingMergeSpec
,ServerSettingsSpec
,SlotStateSpec
,StreamUtilsSpec
,TlsEndpointVerificationSpec
,Utf8CodingSpecs
,WebSocketClientSpec
,WebSocketIntegrationSpec
,WebSocketServerSpec
public interface WatchedByCoroner
Mixin for tests that should be watched by the Coroner. The
startCoroner
and stopCoroner
methods should be called before and after the test runs.
The Coroner will display its report if the test takes longer than the
(dilated) expectedTestDuration
to run.
If displayThreadCounts is set to true, then the Coroner will print thread counts during start and stop.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
scala.concurrent.duration.FiniteDuration
scala.concurrent.duration.FiniteDuration
void
void
-
Method Details
-
displayThreadCounts
boolean displayThreadCounts() -
expectedTestDuration
scala.concurrent.duration.FiniteDuration expectedTestDuration() -
startAndStopDuration
scala.concurrent.duration.FiniteDuration startAndStopDuration() -
startCoroner
void startCoroner() -
stopCoroner
void stopCoroner()
-