Polish
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user