예제 #1
0
 @Test
 public void shouldNotHaveHeadersIfText() throws Exception {
   Response response = new MockResponse("text");
   assertEquals("", response.makeHttpHeaders());
 }
예제 #2
0
 @Test
 public void shouldHaveHeadersIfXml() throws Exception {
   Response response = new MockResponse("xml");
   assertTrue(response.makeHttpHeaders().contains("HTTP/1.1 200 OK"));
 }