示例#1
0
 @Test
 public void nullContext() {
   String contextType = null;
   assertFalse(ContentTypeUtil.isTextual(contextType));
   assertNull(ContentTypeUtil.getSubType(contextType));
 }
示例#2
0
 @Test
 public void emptySubtype() {
   String contextType = "text/";
   assertTrue(ContentTypeUtil.isTextual(contextType));
   assertNull(ContentTypeUtil.getSubType(contextType));
 }
示例#3
0
 @Test
 public void smoke() {
   String contextType = "text/html";
   assertTrue(ContentTypeUtil.isTextual(contextType));
   assertEquals("html", ContentTypeUtil.getSubType(contextType));
 }