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 voidTestReporter.publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action) Deprecated, for removal: This API element is subject to removal in a future version.default voidTestReporter.publishFile(Path file, MediaType mediaType) Deprecated, for removal: This API element is subject to removal in a future version.UseTestReporter.publishFile(Path, MediaType)instead. -
Uses of MediaType in org.junit.jupiter.api.extension
Fields in org.junit.jupiter.api.extension declared as MediaTypeModifier and TypeFieldDescriptionstatic final MediaTypeMediaType.APPLICATION_JSONDeprecated, for removal: This API element is subject to removal in a future version.Theapplication/jsonmedia type.static final MediaTypeMediaType.APPLICATION_JSON_UTF_8Deprecated.UseMediaType.APPLICATION_JSONinstead.static final MediaTypeMediaType.APPLICATION_OCTET_STREAMDeprecated, for removal: This API element is subject to removal in a future version.Theapplication/octet-streammedia type.static final MediaTypeMediaType.IMAGE_JPEGDeprecated, for removal: This API element is subject to removal in a future version.Theimage/jpegmedia type.static final MediaTypeMediaType.IMAGE_PNGDeprecated, for removal: This API element is subject to removal in a future version.Theimage/pngmedia type.static final MediaTypeMediaType.TEXT_PLAINDeprecated, for removal: This API element is subject to removal in a future version.Thetext/plainmedia type.static final MediaTypeMediaType.TEXT_PLAIN_UTF_8Deprecated, for removal: This API element is subject to removal in a future version.Thetext/plain; charset=UTF-8media type.Methods in org.junit.jupiter.api.extension that return MediaTypeModifier and TypeMethodDescriptionstatic MediaTypeDeprecated, for removal: This API element is subject to removal in a future version.Create a media type with the given type and subtype.static MediaTypeDeprecated, for removal: This API element is subject to removal in a future version.Create a media type with the given type, subtype, and charset.static MediaTypeDeprecated, for removal: This API element is subject to removal in a future version.Parse the given media type value.Methods in org.junit.jupiter.api.extension with parameters of type MediaTypeModifier and TypeMethodDescriptiondefault voidExtensionContext.publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action) Deprecated, for removal: This API element is subject to removal in a future version.
TestReporter.publishFile(String, MediaType, ThrowingConsumer)instead.