This commit is contained in:
Stephane Nicoll
2017-12-12 11:57:24 +01:00
parent 97c91eee94
commit 23218add90
615 changed files with 2832 additions and 3224 deletions

View File

@@ -49,7 +49,7 @@ public class SampleWebFreeMarkerApplicationTests {
private TestRestTemplate testRestTemplate;
@Test
public void testFreeMarkerTemplate() throws Exception {
public void testFreeMarkerTemplate() {
ResponseEntity<String> entity = this.testRestTemplate.getForEntity("/",
String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
@@ -57,7 +57,7 @@ public class SampleWebFreeMarkerApplicationTests {
}
@Test
public void testFreeMarkerErrorTemplate() throws Exception {
public void testFreeMarkerErrorTemplate() {
HttpHeaders headers = new HttpHeaders();
headers.setAccept(Arrays.asList(MediaType.TEXT_HTML));
HttpEntity<String> requestEntity = new HttpEntity<>(headers);