Uses of Class
org.junit.jupiter.api.extension.MediaType
Packages that use MediaType
Package
Description
JUnit Jupiter API for writing tests.
JUnit Jupiter API for writing extensions.
-
Uses of MediaType in org.junit.jupiter.api
Methods in org.junit.jupiter.api with parameters of type MediaTypeModifier and TypeMethodDescriptiondefault void
TestReporter.publishFile
(String name, MediaType mediaType, ThrowingConsumer<Path> action) Publish a file or directory with the supplied name and media type written by the supplied action and attach it to the current test or container.default void
TestReporter.publishFile
(Path file, MediaType mediaType) Publish the supplied file and attach it to the current test or container. -
Uses of MediaType in org.junit.jupiter.api.extension
Fields in org.junit.jupiter.api.extension declared as MediaTypeModifier and TypeFieldDescriptionstatic final MediaType
MediaType.APPLICATION_JSON
Theapplication/json
media type.static final MediaType
MediaType.APPLICATION_JSON_UTF_8
Theapplication/json; charset=UTF-8
media type.static final MediaType
MediaType.APPLICATION_OCTET_STREAM
Theapplication/octet-stream
media type.static final MediaType
MediaType.IMAGE_JPEG
Theimage/jpeg
media type.static final MediaType
MediaType.IMAGE_PNG
Theimage/png
media type.static final MediaType
MediaType.TEXT_PLAIN
Thetext/plain
media type.static final MediaType
MediaType.TEXT_PLAIN_UTF_8
Thetext/plain; charset=UTF-8
media type.Methods in org.junit.jupiter.api.extension that return MediaTypeModifier and TypeMethodDescriptionstatic MediaType
Create a media type with the given type and subtype.static MediaType
Create a media type with the given type, subtype, and charset.static MediaType
Parse the given media type value.Methods in org.junit.jupiter.api.extension with parameters of type MediaTypeModifier and TypeMethodDescriptionvoid
ExtensionContext.publishFile
(String name, MediaType mediaType, ThrowingConsumer<Path> action) Publish a file with the supplied name written by the supplied action and attach it to the current test or container.