1 16 package org.apache.cocoon; 17 18 25 public class BatikSampleMimeTypesTestCase 26 extends HtmlUnitTestCase 27 { 28 public void testHelloSVG() 29 throws Exception  30 { 31 loadResponse("/samples/hello-world/hello.svg"); 32 assertEquals("Content type", "image/svg+xml", response.getContentType()); 33 } 34 35 public void testHelloJPEG() 36 throws Exception  37 { 38 loadResponse("/samples/blocks/batik/hello.jpeg"); 39 assertEquals("Content type", "image/jpeg", response.getContentType()); 40 } 41 42 public void testHelloPNG() 43 throws Exception  44 { 45 loadResponse("/samples/blocks/batik/hello.png"); 46 assertEquals("Content type", "image/png", response.getContentType()); 47 } 48 49 public void testLogoSVG() 50 throws Exception  51 { 52 loadResponse("/samples/blocks/batik/batikLogo.svg"); 53 assertEquals("Content type", "image/svg+xml", response.getContentType()); 54 } 55 56 public void testLogoJPEG() 57 throws Exception  58 { 59 loadResponse("/samples/blocks/batik/batikLogo.jpeg"); 60 assertEquals("Content type", "image/jpeg", response.getContentType()); 61 } 62 63 public void testLogoPNG() 64 throws Exception  65 { 66 loadResponse("/samples/blocks/batik/batikLogo.png"); 67 assertEquals("Content type", "image/png", response.getContentType()); 68 } 69 70 public void testHenrySVG() 71 throws Exception  72 { 73 loadResponse("/samples/blocks/batik/henryV.svg"); 74 assertEquals("Content type", "image/svg+xml", response.getContentType()); 75 } 76 77 public void testHenryJPEG() 78 throws Exception  79 { 80 loadResponse("/samples/blocks/batik/henryV.jpeg"); 81 assertEquals("Content type", "image/jpeg", response.getContentType()); 82 } 83 84 public void testHenryPNG() 85 throws Exception  86 { 87 loadResponse("/samples/blocks/batik/henryV.png"); 88 assertEquals("Content type", "image/png", response.getContentType()); 89 } 90 91 public void testAnneSVG() 92 throws Exception  93 { 94 loadResponse("/samples/blocks/batik/anne.svg"); 95 assertEquals("Content type", "image/svg+xml", response.getContentType()); 96 } 97 98 public void testAnneJPEG() 99 throws Exception  100 { 101 loadResponse("/samples/blocks/batik/anne.jpeg"); 102 assertEquals("Content type", "image/jpeg", response.getContentType()); 103 } 104 105 public void testAnnePNG() 106 throws Exception  107 { 108 loadResponse("/samples/blocks/batik/anne.png"); 109 assertEquals("Content type", "image/png", response.getContentType()); 110 } 111 } 112 | Popular Tags |