mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-07 17:59:02 +00:00
Polish
This commit is contained in:
+2
-2
@@ -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