1 29 30 package nextapp.echo2.webrender.test; 31 32 import nextapp.echo2.webrender.ContentType; 33 import junit.framework.TestCase; 34 35 38 public class ContentTypeTest extends TestCase { 39 40 public void testBasic() { 41 assertTrue(ContentType.IMAGE_GIF.isBinary()); 42 assertTrue(ContentType.IMAGE_PNG.isBinary()); 43 assertTrue(ContentType.IMAGE_JPEG.isBinary()); 44 assertFalse(ContentType.MULTIPART_FORM_DATA.isBinary()); 45 assertFalse(ContentType.TEXT_JAVASCRIPT.isBinary()); 46 assertFalse(ContentType.TEXT_HTML.isBinary()); 47 assertFalse(ContentType.TEXT_PLAIN.isBinary()); 48 assertFalse(ContentType.TEXT_XML.isBinary()); 49 } 50 } 51 | Popular Tags |