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