Пример #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"));
 }