View Javadoc
1   /*
2    * Copyright (c) 2013, Dienst Landelijk Gebied - Ministerie van Economische Zaken
3    * 
4    * Gepubliceerd onder de BSD 2-clause licentie, zie https://github.com/MinELenI/CBSviewer/blob/master/LICENSE.md voor de volledige licentie.
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   * Testcases voor download.jsp.
17   * 
18   * @author mprins
19   */
20  public class DownloadJSPIntegrationTest extends JSPIntegrationTest {
21  
22  	/**
23  	 * testcase voor download.jsp.
24  	 * 
25  	 * @throws Exception
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  }