提交 6e21c172 编写于 作者: A Arjen Poutsma

SPR-6788 - The class MediaType has a natural ordering that is inconsistent...

SPR-6788 - The class MediaType has a natural ordering that is inconsistent with equals, which is generally recommended or should otherwise at least be indicated in the javadoc
上级 0135a945
......@@ -101,11 +101,16 @@ public class MediaTypeTests {
MediaType.parseMediaType("audio/basic)");
}
@Test(expected = IllegalArgumentException.class)
public void parseMediaTypeEmptyParameterAttribute() {
MediaType.parseMediaType("audio/*;=value");
}
@Test(expected = IllegalArgumentException.class)
public void parseMediaTypeEmptyParameterValue() {
MediaType.parseMediaType("audio/*;attr=");
}
@Test(expected = IllegalArgumentException.class)
public void parseMediaTypeIllegalParameterAttribute() {
MediaType.parseMediaType("audio/*;attr<=value");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册