Lines Matching refs:contentType

36 		String contentType = "test/plain";  in testSetContentType()  local
38 response.setContentType(contentType); in testSetContentType()
39 assertEquals(contentType, response.getContentType()); in testSetContentType()
40 assertEquals(contentType, response.getHeader("Content-Type")); in testSetContentType()
45 String contentType = "test/plain;charset=UTF-8"; in testSetContentTypeUTF8() local
47 response.setContentType(contentType); in testSetContentTypeUTF8()
49 assertEquals(contentType, response.getContentType()); in testSetContentTypeUTF8()
50 assertEquals(contentType, response.getHeader("Content-Type")); in testSetContentTypeUTF8()
54 String contentType = "test/plain"; in testContentTypeHeader() local
56 response.addHeader("Content-Type", contentType); in testContentTypeHeader()
57 assertEquals(contentType, response.getContentType()); in testContentTypeHeader()
58 assertEquals(contentType, response.getHeader("Content-Type")); in testContentTypeHeader()
62 response.setHeader("Content-Type", contentType); in testContentTypeHeader()
63 assertEquals(contentType, response.getContentType()); in testContentTypeHeader()
64 assertEquals(contentType, response.getHeader("Content-Type")); in testContentTypeHeader()
69 String contentType = "test/plain;charset=UTF-8"; in testContentTypeHeaderUTF8() local
71 response.setHeader("Content-Type", contentType); in testContentTypeHeaderUTF8()
72 assertEquals(contentType, response.getContentType()); in testContentTypeHeaderUTF8()
73 assertEquals(contentType, response.getHeader("Content-Type")); in testContentTypeHeaderUTF8()
77 response.addHeader("Content-Type", contentType); in testContentTypeHeaderUTF8()
78 assertEquals(contentType, response.getContentType()); in testContentTypeHeaderUTF8()
79 assertEquals(contentType, response.getHeader("Content-Type")); in testContentTypeHeaderUTF8()