Package io.cucumber.core.plugin
Class PublishFormatter
java.lang.Object
io.cucumber.core.plugin.PublishFormatter
- All Implemented Interfaces:
ColorAware,ConcurrentEventListener,Plugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringWhere to publish messages by defaultprivate final MessageFormatterprivate final UrlReporter -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePublishFormatter(CurlOption curlOption) PublishFormatter(String token) -
Method Summary
Modifier and TypeMethodDescriptionprivate static CurlOptioncreateCurlOption(@Nullable String token) voidsetEventPublisher(EventPublisher publisher) Set the event publisher.voidsetMonochrome(boolean monochrome) When set to monochrome the plugin should not use colored output.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.cucumber.plugin.ConcurrentEventListener
setEventPublisher
-
Field Details
-
DEFAULT_CUCUMBER_MESSAGE_STORE_URL
Where to publish messages by default- See Also:
-
urlReporter
-
delegate
-
-
Constructor Details
-
PublishFormatter
- Throws:
IOException
-
PublishFormatter
- Throws:
IOException
-
PublishFormatter
- Throws:
IOException
-
-
Method Details
-
setEventPublisher
Description copied from interface:ConcurrentEventListenerSet the event publisher. The plugin can register event listeners with the publisher.- Specified by:
setEventPublisherin interfaceConcurrentEventListener- Parameters:
publisher- the event publisher
-
setMonochrome
public void setMonochrome(boolean monochrome) Description copied from interface:ColorAwareWhen set to monochrome the plugin should not use colored output.For the benefit of systems that do not support ANSI escape codes.
- Specified by:
setMonochromein interfaceColorAware- Parameters:
monochrome- true if monochrome output should be used
-
createCurlOption
-