Uses of Class
org.junit.jupiter.api.MediaType
-
Packages that use MediaType Package Description org.junit.jupiter.api JUnit Jupiter API for writing tests.org.junit.jupiter.api.extension JUnit Jupiter API for writing extensions. -
-
Uses of MediaType in org.junit.jupiter.api
Fields in org.junit.jupiter.api declared as MediaType Modifier and Type Field Description static MediaTypeMediaType. APPLICATION_JSONTheapplication/jsonmedia type.static MediaTypeMediaType. APPLICATION_OCTET_STREAMTheapplication/octet-streammedia type.static MediaTypeMediaType. IMAGE_JPEGTheimage/jpegmedia type.static MediaTypeMediaType. IMAGE_PNGTheimage/pngmedia type.static MediaTypeMediaType. TEXT_PLAINThetext/plainmedia type.static MediaTypeMediaType. TEXT_PLAIN_UTF_8Thetext/plain; charset=UTF-8media type.Methods in org.junit.jupiter.api that return MediaType Modifier and Type Method Description static MediaTypeMediaType. create(java.lang.String type, java.lang.String subtype)Create a media type with the given type and subtype.static MediaTypeMediaType. create(java.lang.String type, java.lang.String subtype, java.nio.charset.Charset charset)Create a media type with the given type, subtype, and charset.static MediaTypeMediaType. parse(java.lang.String value)Parse the given media type value.Methods in org.junit.jupiter.api with parameters of type MediaType Modifier and Type Method Description default voidTestReporter. publishFile(java.lang.String name, MediaType mediaType, ThrowingConsumer<java.nio.file.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(java.nio.file.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.extension Modifier and Type Class Description classMediaTypeDeprecated.UseMediaTypeinstead.Methods in org.junit.jupiter.api.extension with parameters of type MediaType Modifier and Type Method Description voidExtensionContext. publishFile(java.lang.String name, MediaType mediaType, ThrowingConsumer<java.nio.file.Path> action)Publish a file with the supplied name written by the supplied action and attach it to the current test or container.
-