Top Fields Constructors Methods
org.junit.platform.engine

pack-priv final Class DisabledCancellationToken

extends Object
implements CancellationToken
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.CancellationToken

Since
6.0

Field Summary

Modifier and TypeField and Description
pack-priv static final DisabledCancellationToken

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
isCancellationRequested()

Implements org.junit.platform.engine.CancellationToken.isCancellationRequested.

Returns whether cancellation has been requested.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final DisabledCancellationToken INSTANCE

Constructor Detail

DisabledCancellationTokenback to summary
private DisabledCancellationToken()

Method Detail

cancelback to summary
public void cancel()

Implements org.junit.platform.engine.CancellationToken.cancel.

Doc from org.junit.platform.engine.CancellationToken.cancel.

Request cancellation.

This will call subsequent calls to isCancellationRequested() to return true.

Annotations
@Override
isCancellationRequestedback to summary
public boolean isCancellationRequested()

Implements org.junit.platform.engine.CancellationToken.isCancellationRequested.

Doc from org.junit.platform.engine.CancellationToken.isCancellationRequested.

Returns whether cancellation has been requested.

Once this method returns true, it will never return false in a subsequent call.

Annotations
@Override