1
2
3
4
5
6 package nl.mineleni.cbsviewer.jsp;
7
8 import static javax.servlet.http.HttpServletResponse.SC_OK;
9 import static org.hamcrest.Matchers.equalTo;
10 import static org.junit.Assert.assertThat;
11
12 import org.apache.http.client.methods.HttpGet;
13 import org.junit.Test;
14
15
16
17
18
19
20 public class DownloadJSPIntegrationTest extends JSPIntegrationTest {
21
22
23
24
25
26
27 @Override
28 @Test
29 public void testIfValidResponse() throws Exception {
30 response = client.execute(new HttpGet(BASE_TEST_URL + "download.jsp"));
31 assertThat("Response status is OK.", response.getStatusLine()
32 .getStatusCode(), equalTo(SC_OK));
33
34 boilerplateValidationTests(response);
35 }
36 }