mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-09 16:49:36 +00:00
SPR-8697 Flag '*/subtype' as illegal.
This commit is contained in:
@@ -128,6 +128,11 @@ public class MediaTypeTests {
|
||||
MediaType.parseMediaType("audio/");
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void parseMediaTypeTypeRange() {
|
||||
MediaType.parseMediaType("*/json");
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void parseMediaTypeIllegalType() {
|
||||
MediaType.parseMediaType("audio(/basic");
|
||||
|
||||
Reference in New Issue
Block a user