Uses of Class
org.junit.jupiter.api.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
Fields in org.junit.jupiter.api declared as MediaTypeModifier and TypeFieldDescriptionstatic final MediaTypeMediaType.APPLICATION_JSONTheapplication/jsonmedia type.static final MediaTypeMediaType.APPLICATION_OCTET_STREAMTheapplication/octet-streammedia type.static final MediaTypeMediaType.IMAGE_JPEGTheimage/jpegmedia type.static final MediaTypeMediaType.IMAGE_PNGTheimage/pngmedia type.static final MediaTypeMediaType.TEXT_PLAINThetext/plainmedia type.static final MediaTypeMediaType.TEXT_PLAIN_UTF_8Thetext/plain; charset=UTF-8media type.Methods in org.junit.jupiter.api that return MediaTypeModifier and TypeMethodDescriptionstatic MediaTypeCreate a media type with the given type and subtype.static MediaTypeCreate a media type with the given type, subtype, and charset.static MediaTypeParse the given media type value.Methods in org.junit.jupiter.api with parameters of type MediaTypeModifier and TypeMethodDescriptiondefault voidTestReporter.publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action) Publish a file with the supplied name and media type written by the supplied action and attach it to the current test or container.default voidTestReporter.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
Subclasses of MediaType in org.junit.jupiter.api.extensionModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.Methods in org.junit.jupiter.api.extension with parameters of type MediaTypeModifier and TypeMethodDescriptionvoidExtensionContext.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.
MediaTypeinstead.