@Override public String getContentTypeString() { return HttpUtil.getMimeFromContentType(jtf_content_type_charset.getText()); }
@Test public void testGetMimeFromContentType() { System.out.println("getMimeFromContentType"); String contentType = "application/xml;charset=UTF-8"; String expResult = "application/xml"; String result = HttpUtil.getMimeFromContentType(contentType); assertEquals(expResult, result); } }